public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: base.Parse(propIndex, value, nestedIndex); return; case 2: _thickness = value.RealVal; return; case 3: _ribHeight = value.RealVal; return; case 4: _ribWidth = value.RealVal; return; case 5: _ribSpacing = value.RealVal; return; case 6: _direction = (IfcRibPlateDirectionEnum)System.Enum.Parse(typeof(IfcRibPlateDirectionEnum), 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: base.IfcParse(propIndex, value); break; case 2: _Thickness = value.RealVal; break; case 3: _RibHeight = value.RealVal; break; case 4: _RibWidth = value.RealVal; break; case 5: _RibSpacing = value.RealVal; break; case 6: _Direction = (IfcRibPlateDirectionEnum)Enum.Parse(typeof(IfcRibPlateDirectionEnum), value.EnumVal); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcRibPlateProfileProperties(IfcLabel?__ProfileName, IfcProfileDef __ProfileDefinition, IfcPositiveLengthMeasure?__Thickness, IfcPositiveLengthMeasure?__RibHeight, IfcPositiveLengthMeasure?__RibWidth, IfcPositiveLengthMeasure?__RibSpacing, IfcRibPlateDirectionEnum __Direction) : base(__ProfileName, __ProfileDefinition) { this._Thickness = __Thickness; this._RibHeight = __RibHeight; this._RibWidth = __RibWidth; this._RibSpacing = __RibSpacing; this._Direction = __Direction; }
internal IfcRibPlateProfileProperties(IfcRibPlateProfileProperties p) : base(p) { mThickness = p.mThickness; mRibHeight = p.mRibHeight; mRibWidth = p.mRibWidth; mRibSpacing = p.mRibSpacing; mDirection = p.mDirection; }