Example #1
0
		internal static IfcRelSequence Parse(string strDef,Schema schema) { IfcRelSequence i = new IfcRelSequence(); int ipos = 0; parseFields(i, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return i; }
Example #2
0
		internal static void parseFields(IfcRelSequence i, List<string> arrFields, ref int ipos,Schema schema)
		{
			IfcRelConnects.parseFields(i, arrFields, ref ipos);
			i.mRelatingProcess = ParserSTEP.ParseLink(arrFields[ipos++]);
			i.mRelatedProcess = ParserSTEP.ParseLink(arrFields[ipos++]);
			if (schema == Schema.IFC2x3)
				i.mTimeLag = ParserSTEP.ParseDouble(arrFields[ipos++]);
			else
				i.mTimeLag = ParserSTEP.ParseLink(arrFields[ipos++]);
			string s = arrFields[ipos++];
			if (s != "$")
				i.mSequenceType = (IfcSequenceEnum)Enum.Parse(typeof(IfcSequenceEnum), s.Replace(".", ""));
			if (schema != Schema.IFC2x3)
				i.mUserDefinedSequenceType = arrFields[ipos++];
		}
Example #3
0
		internal IfcRelSequence(IfcRelSequence s) : base(s) { mRelatingProcess = s.mRelatingProcess; mRelatedProcess = s.mRelatedProcess; mTimeLag = s.mTimeLag; mSequenceType = s.mSequenceType; mUserDefinedSequenceType = s.mUserDefinedSequenceType; }