internal new static IfcMechanicalFastenerType Parse(string strDef,Schema schema) { IfcMechanicalFastenerType t = new IfcMechanicalFastenerType(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return t; }
internal static void parseFields(IfcMechanicalFastenerType t, List<string> arrFields, ref int ipos,Schema schema) { IfcElementComponentType.parseFields(t, arrFields, ref ipos); if (schema != Schema.IFC2x3) { t.mPredefinedType = (IfcMechanicalFastenerTypeEnum)Enum.Parse(typeof(IfcMechanicalFastenerTypeEnum), arrFields[ipos++].Replace(".", "")); t.mNominalDiameter = ParserSTEP.ParseDouble(arrFields[ipos++]); t.mNominalLength = ParserSTEP.ParseDouble(arrFields[ipos++]); } }
internal IfcMechanicalFastenerType(IfcMechanicalFastenerType t) : base(t) { mNominalDiameter = t.mNominalDiameter; mNominalLength = t.mNominalLength; mPredefinedType = t.mPredefinedType; }