public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: base.Parse(propIndex, value, nestedIndex); return; case 7: _predefinedType = (IfcStructuralSurfaceMemberTypeEnum)System.Enum.Parse(typeof(IfcStructuralSurfaceMemberTypeEnum), value.EnumVal, true); return; case 8: _thickness = value.RealVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcStructuralSurfaceMember(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralSurfaceMemberTypeEnum __PredefinedType, IfcPositiveLengthMeasure?__Thickness) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation) { this.PredefinedType = __PredefinedType; this.Thickness = __Thickness; }
} // optional /// <summary> /// Construct a IfcStructuralSurfaceMember with all required attributes. /// </summary> public IfcStructuralSurfaceMember(IfcGloballyUniqueId globalId, IfcStructuralSurfaceMemberTypeEnum predefinedType) : base(globalId) { PredefinedType = predefinedType; }
public IfcStructuralSurfaceMember(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcStructuralSurfaceMemberTypeEnum predefinedType, IfcPositiveLengthMeasure thickness) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation) { PredefinedType = predefinedType; Thickness = thickness; }
/// <summary> /// Construct a IfcStructuralSurfaceMemberVarying with all required attributes. /// </summary> public IfcStructuralSurfaceMemberVarying(IfcGloballyUniqueId globalId, IfcStructuralSurfaceMemberTypeEnum predefinedType) : base(globalId, predefinedType) { }