public IfcDoorType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcDoorTypeEnum predefinedType, IfcDoorTypeOperationEnum operationType, IfcBoolean parameterTakesPrecedence, IfcLabel userDefinedOperationType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType) { PredefinedType = predefinedType; OperationType = operationType; ParameterTakesPrecedence = parameterTakesPrecedence; UserDefinedOperationType = userDefinedOperationType; }
public IfcDoor(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcPositiveLengthMeasure overallHeight, IfcPositiveLengthMeasure overallWidth, IfcDoorTypeEnum predefinedType, IfcDoorTypeOperationEnum operationType, IfcLabel userDefinedOperationType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag) { OverallHeight = overallHeight; OverallWidth = overallWidth; PredefinedType = predefinedType; OperationType = operationType; UserDefinedOperationType = userDefinedOperationType; }
public IfcDoorType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcDoorTypeEnum __PredefinedType, IfcDoorTypeOperationEnum __OperationType, IfcBoolean?__ParameterTakesPrecedence, IfcLabel?__UserDefinedOperationType) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType) { this._PredefinedType = __PredefinedType; this._OperationType = __OperationType; this._ParameterTakesPrecedence = __ParameterTakesPrecedence; this._UserDefinedOperationType = __UserDefinedOperationType; }
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 = (IfcDoorTypeEnum)System.Enum.Parse(typeof(IfcDoorTypeEnum), value.EnumVal, true); return; case 10: _operationType = (IfcDoorTypeOperationEnum)System.Enum.Parse(typeof(IfcDoorTypeOperationEnum), value.EnumVal, true); return; case 11: _parameterTakesPrecedence = value.BooleanVal; return; case 12: _userDefinedOperationType = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
internal IfcDoorType(DatabaseIfc m, string name, IfcDoorTypeEnum type, IfcDoorTypeOperationEnum operation, bool parameterTakesPrecendence) : base(m) { Name = name; mPredefinedType = type; mOperationType = operation; mParameterTakesPrecedence = parameterTakesPrecendence; }
internal IfcDoorType(DatabaseIfc m, string name, IfcDoorTypeEnum type, IfcDoorTypeOperationEnum operation, IfcDoorLiningProperties lp, List<IfcDoorPanelProperties> pps) : base(m) { Name = name; if (lp != null) mHasPropertySets.Add(lp.mIndex); if (pps != null && pps.Count > 0) mHasPropertySets.AddRange(pps.ConvertAll(x => x.mIndex)); mPredefinedType = type; mOperationType = operation; mParameterTakesPrecedence = true; }
public IfcDoorType(DatabaseIfc m, string name, IfcDoorTypeEnum type) : this(m, name, type, IfcDoorTypeOperationEnum.NOTDEFINED, false) { }
internal IfcDoorType(IfcDoorType t) : base(t) { mPredefinedType = t.mPredefinedType; mOperationType = t.mOperationType; mParameterTakesPrecedence = t.mParameterTakesPrecedence; mUserDefinedOperationType = t.mUserDefinedOperationType; }
internal IfcDoor(IfcDoor d) : base(d) { mOverallHeight = d.mOverallHeight; mOverallWidth = d.mOverallWidth; mPredefinedType = d.mPredefinedType; mOperationType = d.mOperationType; mUserDefinedOperationType = d.mUserDefinedOperationType; }
} // optional /// <summary> /// Construct a IfcDoorType with all required attributes. /// </summary> public IfcDoorType(IfcGloballyUniqueId globalId, IfcDoorTypeEnum predefinedType, IfcDoorTypeOperationEnum operationType) : base(globalId) { PredefinedType = predefinedType; OperationType = operationType; }
protected void Parse(string str, ref int pos, int len, ReleaseVersion schema) { base.Parse(str, ref pos, len); mOverallHeight = ParserSTEP.StripDouble(str, ref pos, len); mOverallWidth = ParserSTEP.StripDouble(str, ref pos, len); if (schema != ReleaseVersion.IFC2x3) { string s = ParserSTEP.StripField(str, ref pos, len); if (s[0] == '.') PredefinedType = (IfcDoorTypeEnum)Enum.Parse(typeof(IfcDoorTypeEnum), s.Substring(1, s.Length - 2)); s = ParserSTEP.StripField(str, ref pos, len); if (s[0] == '.') mOperationType = (IfcDoorTypeOperationEnum)Enum.Parse(typeof(IfcDoorTypeOperationEnum), s.Substring(1, s.Length - 2)); try { mUserDefinedOperationType = ParserSTEP.StripString(str,ref pos, len); } catch (Exception) { } } }