public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: base.IfcParse(propIndex, value); break; case 9: _predefinedType = (IfcBuildingElementProxyTypeEnum) Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcBuildingElementProxyType(DatabaseIfc m, string name, IfcBuildingElementProxyTypeEnum type) : base(m) { Name = name; mPredefinedType = type; if (m.mRelease < ReleaseVersion.IFC4) { if (type != IfcBuildingElementProxyTypeEnum.USERDEFINED && type != IfcBuildingElementProxyTypeEnum.NOTDEFINED) { if (ElementType == "$") { ElementType = type.ToString(); } mPredefinedType = IfcBuildingElementProxyTypeEnum.USERDEFINED; } } }
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: case 7: case 8: base.Parse(propIndex, value, nestedIndex); return; case 9: _predefinedType = (IfcBuildingElementProxyTypeEnum)System.Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum), value.EnumVal, true); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: base.IfcParse(propIndex, value); break; case 9: _predefinedType = (IfcBuildingElementProxyTypeEnum) Enum.Parse(typeof (IfcBuildingElementProxyTypeEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t, DuplicateOptions options) : base(db, t, options) { mPredefinedType = t.mPredefinedType; }
internal IfcBuildingElementProxy(DatabaseIfc db, IfcBuildingElementProxy p, DuplicateOptions options) : base(db, p, options) { mPredefinedType = p.mPredefinedType; }
public IfcBuildingElementProxyType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcBuildingElementProxyTypeEnum __PredefinedType) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType) { this._PredefinedType = __PredefinedType; }
protected override void Parse(string str, ref int pos, int len) { base.Parse(str, ref pos, len); string s = ParserSTEP.StripField(str, ref pos, len); if (s.StartsWith(".")) { try { mPredefinedType = (IfcBuildingElementProxyTypeEnum)Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum),s.Replace(".", "")); } catch (Exception) { } } }
internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t, IfcOwnerHistory ownerHistory, bool downStream) : base(db, t, ownerHistory, downStream) { mPredefinedType = t.mPredefinedType; }
public IfcBuildingElementProxy(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag) { PredefinedType = predefinedType; }
public IfcBuildingElementProxyType(DatabaseIfc m, string name, IfcBuildingElementProxyTypeEnum type) : base(m) { Name = name; mPredefinedType = type; if (m.mSchema == Schema.IFC2x3) { if (type != IfcBuildingElementProxyTypeEnum.USERDEFINED && type != IfcBuildingElementProxyTypeEnum.NOTDEFINED) { if (ElementType == "$") ElementType = type.ToString(); mPredefinedType = IfcBuildingElementProxyTypeEnum.USERDEFINED; } } }
internal IfcBuildingElementProxyType(IfcBuildingElementProxyType t) : base(t) { mPredefinedType = t.mPredefinedType; }
internal IfcBuildingElementProxy(IfcBuildingElementProxy p) : base(p) { mPredefinedType = p.mPredefinedType; }
internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t) : base(db,t) { mPredefinedType = t.mPredefinedType; }
/// <summary> /// Construct a IfcBuildingElementProxyType with all required attributes. /// </summary> public IfcBuildingElementProxyType(IfcGloballyUniqueId globalId, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId) { PredefinedType = predefinedType; }
public IfcBuildingElementProxyType(DatabaseIfc db, string name, IfcBuildingElementProxyTypeEnum type) : base(db) { Name = name; PredefinedType = type; }
public IfcBuildingElementProxyType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType) { PredefinedType = predefinedType; }
internal IfcBuildingElementProxy(DatabaseIfc db, IfcBuildingElementProxy p) : base(db, p) { mPredefinedType = p.mPredefinedType; }