internal new static IfcMaterialLayerSetWithOffsets Parse(string strDef) { IfcMaterialLayerSetWithOffsets m = new IfcMaterialLayerSetWithOffsets(); int ipos = 0; parseFields(m, ParserSTEP.SplitLineFields(strDef), ref ipos); return m; }
internal static void parseFields(IfcMaterialLayerSetWithOffsets m, List<string> arrFields, ref int ipos) { IfcMaterialLayerSet.parseFields(m, arrFields, ref ipos); m.mOffsetDirection = (IfcLayerSetDirectionEnum)Enum.Parse(typeof(IfcLayerSetDirectionEnum), arrFields[ipos++].Replace(".", "")); string s = arrFields[ipos++]; string[] ss = s.Substring(1, s.Length - 2).Split(",".ToCharArray()); m.mOffsetValues[0] = ParserSTEP.ParseDouble(ss[0]); if(ss.Length > 1) m.mOffsetValues[1] = ParserSTEP.ParseDouble(ss[1]); }
internal IfcMaterialLayerSetWithOffsets(IfcMaterialLayerSetWithOffsets m) : base(m) { mOffsetDirection = m.mOffsetDirection; mOffsetValues = m.mOffsetValues; }