public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _description = value.StringVal;
                return;

            case 2:
                _relatingDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
                return;

            case 3:
                _relatedDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Ejemplo n.º 2
0
        void IPersistIfc.IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                break;

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _relatingDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
                break;

            case 3:
                _relatedDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 void IPersistIfc.IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _description = value.StringVal;
             break;
         case 2:
             _relatingDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
             break;
         case 3:
             _relatedDraughtingCallout = (IfcDraughtingCallout)(value.EntityVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }