示例#1
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
             base.IfcParse(propIndex, value);
             break;
         case 5:
             _objectPlacement = (IfcObjectPlacement) value.EntityVal;
             break;
         case 6:
             _representation = (IfcProductRepresentation) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
示例#2
0
 public void AddRepresentation(IfcRepresentation representation)
 {
     if (this.Representation == null)
         this.Representation = new IfcProductDefinitionShape();
     this.Representation.Representations.Add(representation);
 }