public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _sectionType = (IfcSectionTypeEnum)System.Enum.Parse(typeof(IfcSectionTypeEnum), value.EnumVal, true); return; case 1: _startProfile = (IfcProfileDef)(value.EntityVal); return; case 2: _endProfile = (IfcProfileDef)(value.EntityVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public virtual void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _sectionType = (IfcSectionTypeEnum)Enum.Parse(typeof(IfcSectionTypeEnum), value.EnumVal, true); break; case 1: _startProfile = (IfcProfileDef)value.EntityVal; break; case 2: _endProfile = (IfcProfileDef)value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcSectionProperties(IfcSectionTypeEnum sectionType, IfcProfileDef startProfile, IfcProfileDef endProfile) : base() { SectionType = sectionType; StartProfile = startProfile; EndProfile = endProfile; }
public IfcSectionProperties(IfcSectionTypeEnum __SectionType, IfcProfileDef __StartProfile, IfcProfileDef __EndProfile) { this._SectionType = __SectionType; this._StartProfile = __StartProfile; this._EndProfile = __EndProfile; }
public virtual void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _sectionType = (IfcSectionTypeEnum) Enum.Parse(typeof (IfcSectionTypeEnum), value.EnumVal, true); break; case 1: _startProfile = (IfcProfileDef) value.EntityVal; break; case 2: _endProfile = (IfcProfileDef) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcSectionProperties(IfcSectionProperties i) : base() { mSectionType = i.mSectionType; mStartProfile = i.mStartProfile; mEndProfile = i.mEndProfile; }