GeometryGym.Ifc.IfcDuctSegment.parseFields C# (CSharp) Method

parseFields() static private method

static private parseFields ( IfcDuctSegment s, List arrFields, int &ipos ) : void
s IfcDuctSegment
arrFields List
ipos int
return void
		internal static void parseFields(IfcDuctSegment s, List<string> arrFields, ref int ipos)
		{
			IfcFlowSegment.parseFields(s, arrFields, ref ipos);
			string str = arrFields[ipos++];
			if (str[0] == '.')
				s.mPredefinedType = (IfcDuctSegmentTypeEnum)Enum.Parse(typeof(IfcDuctSegmentTypeEnum), str.Substring(1, str.Length - 2));
		}
		internal new static IfcDuctSegment Parse(string strDef) { IfcDuctSegment s = new IfcDuctSegment(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }