} // optional /// <summary> /// Construct a IfcStructuralAnalysisModel with all required attributes. /// </summary> public IfcStructuralAnalysisModel(IfcGloballyUniqueId globalId, IfcAnalysisModelTypeEnum predefinedType) : base(globalId) { LoadedBy = new List <IfcStructuralLoadGroup>(); HasResults = new List <IfcStructuralResultGroup>(); PredefinedType = predefinedType; }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: base.Parse(propIndex, value, nestedIndex); return; case 5: _predefinedType = (IfcAnalysisModelTypeEnum)System.Enum.Parse(typeof(IfcAnalysisModelTypeEnum), value.EnumVal, true); return; case 6: _orientationOf2DPlane = (IfcAxis2Placement3D)(value.EntityVal); return; case 7: _loadedBy.InternalAdd((IfcStructuralLoadGroup)value.EntityVal); return; case 8: _hasResults.InternalAdd((IfcStructuralResultGroup)value.EntityVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcStructuralAnalysisModel(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcAnalysisModelTypeEnum predefinedType, IfcAxis2Placement3D orientationOf2DPlane, List <IfcStructuralLoadGroup> loadedBy, List <IfcStructuralResultGroup> hasResults, IfcObjectPlacement sharedPlacement) : base(globalId, ownerHistory, name, description, objectType) { PredefinedType = predefinedType; OrientationOf2DPlane = orientationOf2DPlane; LoadedBy = loadedBy; HasResults = hasResults; SharedPlacement = sharedPlacement; }
public IfcStructuralAnalysisModel(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcAnalysisModelTypeEnum __PredefinedType, IfcAxis2Placement3D __OrientationOf2DPlane, IfcStructuralLoadGroup[] __LoadedBy, IfcStructuralResultGroup[] __HasResults) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType) { this._PredefinedType = __PredefinedType; this._OrientationOf2DPlane = __OrientationOf2DPlane; this._LoadedBy = new HashSet <IfcStructuralLoadGroup>(__LoadedBy); this._HasResults = new HashSet <IfcStructuralResultGroup>(__HasResults); }
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: _predefinedType = (IfcAnalysisModelTypeEnum)Enum.Parse(typeof(IfcAnalysisModelTypeEnum), value.EnumVal, true); break; case 6: _orientationOf2DPlane = (IfcAxis2Placement3D)value.EntityVal; break; case 7: if (_loadedBy == null) { _loadedBy = new XbimSet <IfcStructuralLoadGroup>(this); } _loadedBy.Add((IfcStructuralLoadGroup)value.EntityVal); break; case 8: _hasResults = (IfcStructuralResultGroup)value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
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: _predefinedType = (IfcAnalysisModelTypeEnum) Enum.Parse(typeof (IfcAnalysisModelTypeEnum), value.EnumVal, true); break; case 6: _orientationOf2DPlane = (IfcAxis2Placement3D) value.EntityVal; break; case 7: if (_loadedBy == null) _loadedBy = new XbimSet<IfcStructuralLoadGroup>(this); _loadedBy.Add((IfcStructuralLoadGroup) value.EntityVal); break; case 8: _hasResults = (IfcStructuralResultGroup) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcStructuralAnalysisModel(IfcSpatialElement bldg, string name, IfcAnalysisModelTypeEnum type) : base(bldg, name) { mPredefinedType = type; }
internal IfcStructuralAnalysisModel(IfcStructuralAnalysisModel i) : base(i) { mPredefinedType = i.mPredefinedType; mOrientationOf2DPlane = i.mOrientationOf2DPlane; mLoadedBy = new List<int>(i.mLoadedBy.ToArray()); mHasResults = new List<int>(i.mHasResults.ToArray()); }