} // inverse /// <summary> /// Construct a IfcStructuralLoadGroup with all required attributes. /// </summary> public IfcStructuralLoadGroup(IfcGloballyUniqueId globalId, IfcLoadGroupTypeEnum predefinedType, IfcActionTypeEnum actionType, IfcActionSourceTypeEnum actionSource) : base(globalId) { SourceOfResultGroup = new List <IfcStructuralResultGroup>(); LoadGroupFor = new List <IfcStructuralAnalysisModel>(); PredefinedType = predefinedType; ActionType = actionType; ActionSource = actionSource; }
public IfcStructuralLoadGroup(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcLoadGroupTypeEnum __PredefinedType, IfcActionTypeEnum __ActionType, IfcActionSourceTypeEnum __ActionSource, IfcRatioMeasure?__Coefficient, IfcLabel?__Purpose) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType) { this._PredefinedType = __PredefinedType; this._ActionType = __ActionType; this._ActionSource = __ActionSource; this._Coefficient = __Coefficient; this._Purpose = __Purpose; }
public IfcStructuralLoadGroup(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcLoadGroupTypeEnum predefinedType, IfcActionTypeEnum actionType, IfcActionSourceTypeEnum actionSource, IfcRatioMeasure coefficient, IfcLabel purpose) : base(globalId, ownerHistory, name, description, objectType) { SourceOfResultGroup = new List <IfcStructuralResultGroup>(); LoadGroupFor = new List <IfcStructuralAnalysisModel>(); PredefinedType = predefinedType; ActionType = actionType; ActionSource = actionSource; Coefficient = coefficient; Purpose = purpose; }
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 = (IfcLoadGroupTypeEnum)Enum.Parse(typeof(IfcLoadGroupTypeEnum), value.EnumVal, true); break; case 6: _actionType = (IfcActionTypeEnum)Enum.Parse(typeof(IfcActionTypeEnum), value.EnumVal, true); break; case 7: _actionSource = (IfcActionSourceTypeEnum)Enum.Parse(typeof(IfcActionSourceTypeEnum), value.EnumVal, true); break; case 8: _coefficient = value.RealVal; break; case 9: _purpose = value.StringVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
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 = (IfcLoadGroupTypeEnum)System.Enum.Parse(typeof(IfcLoadGroupTypeEnum), value.EnumVal, true); return; case 6: _actionType = (IfcActionTypeEnum)System.Enum.Parse(typeof(IfcActionTypeEnum), value.EnumVal, true); return; case 7: _actionSource = (IfcActionSourceTypeEnum)System.Enum.Parse(typeof(IfcActionSourceTypeEnum), value.EnumVal, true); return; case 8: _coefficient = value.RealVal; return; case 9: _purpose = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcStructuralLoadCase(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcLoadGroupTypeEnum __PredefinedType, IfcActionTypeEnum __ActionType, IfcActionSourceTypeEnum __ActionSource, IfcRatioMeasure?__Coefficient, IfcLabel?__Purpose, IfcRatioMeasure[] __SelfWeightCoefficients) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __PredefinedType, __ActionType, __ActionSource, __Coefficient, __Purpose) { this._SelfWeightCoefficients = new List <IfcRatioMeasure>(__SelfWeightCoefficients); }
public IfcStructuralLoadCase(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcLoadGroupTypeEnum predefinedType, IfcActionTypeEnum actionType, IfcActionSourceTypeEnum actionSource, IfcRatioMeasure coefficient, IfcLabel purpose, List <IfcRatioMeasure> selfWeightCoefficients) : base(globalId, ownerHistory, name, description, objectType, predefinedType, actionType, actionSource, coefficient, purpose) { SelfWeightCoefficients = selfWeightCoefficients; }
} // optional /// <summary> /// Construct a IfcStructuralLoadCase with all required attributes. /// </summary> public IfcStructuralLoadCase(IfcGloballyUniqueId globalId, IfcLoadGroupTypeEnum predefinedType, IfcActionTypeEnum actionType, IfcActionSourceTypeEnum actionSource) : base(globalId, predefinedType, actionType, actionSource) { SelfWeightCoefficients = new List <IfcRatioMeasure>(); }
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 = (IfcLoadGroupTypeEnum) Enum.Parse(typeof (IfcLoadGroupTypeEnum), value.EnumVal, true); break; case 6: _actionType = (IfcActionTypeEnum) Enum.Parse(typeof (IfcActionTypeEnum), value.EnumVal, true); break; case 7: _actionSource = (IfcActionSourceTypeEnum) Enum.Parse(typeof (IfcActionSourceTypeEnum), value.EnumVal, true); break; case 8: _coefficient = value.RealVal; break; case 9: _purpose = value.StringVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcStructuralLoadGroup(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcLoadGroupTypeEnum __PredefinedType, IfcActionTypeEnum __ActionType, IfcActionSourceTypeEnum __ActionSource, IfcRatioMeasure?__Coefficient, IfcLabel?__Purpose) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType) { this.PredefinedType = __PredefinedType; this.ActionType = __ActionType; this.ActionSource = __ActionSource; this.Coefficient = __Coefficient; this.Purpose = __Purpose; this.SourceOfResultGroup = new HashSet <IfcStructuralResultGroup>(); this.LoadGroupFor = new HashSet <IfcStructuralAnalysisModel>(); }
internal IfcStructuralLoadGroup(IfcStructuralAnalysisModel sm, string name, IfcLoadGroupTypeEnum type, IfcActionTypeEnum action, IfcActionSourceTypeEnum source, double coeff, string purpose) : base(sm.mDatabase, name) { mLoadGroupFor.Add(sm); sm.addLoadGroup(this); mPredefinedType = type; mActionType = action; mActionSource = source; mCoefficient = coeff; if (!string.IsNullOrEmpty(purpose)) mPurpose = purpose; }
internal IfcStructuralLoadGroup(IfcStructuralLoadGroup p) : base(p) { mPredefinedType = p.mPredefinedType; mActionType = p.mActionType; mActionSource = p.mActionSource; mCoefficient = p.mCoefficient; mPurpose = p.mPurpose; }
public IfcStructuralLoadCase(IfcStructuralAnalysisModel sm, string name, IfcActionTypeEnum action, IfcActionSourceTypeEnum source, double coeff, string purpose) : base(sm, name, IfcLoadGroupTypeEnum.LOAD_CASE, action, source, coeff, purpose) { new IfcRelAssignsToGroup(this) { Name = Name + " Actions", Description = Description }; }