Exemple #1
0
		internal static void parseFields(IfcCostItem c, List<string> arrFields, ref int ipos, Schema schema)  
		{ 
			IfcControl.parseFields(c, arrFields, ref ipos,schema);
			if (schema != Schema.IFC2x3)
			{
				string s = arrFields[ipos++];
				if (s.StartsWith("."))
					c.mPredefinedType = (IfcCostItemTypeEnum)Enum.Parse(typeof(IfcCostItemTypeEnum), s.Replace(".", ""));
				s = arrFields[ipos++];
				if(s != "$")
					c.mCostValues = ParserSTEP.SplitListLinks(s);
				s = arrFields[ipos++];
				if(s != "$")
					c.mCostQuantities = ParserSTEP.SplitListLinks(s);
			}
		}
Exemple #2
0
		internal IfcCostItem(IfcCostItem i, List<IfcCostValue> values, List<IfcPhysicalQuantity> quants)
			: this(i.mDatabase, values, quants) { i.AddNested(this); }
Exemple #3
0
		internal static IfcCostItem Parse(string strDef, Schema schema) { IfcCostItem c = new IfcCostItem(); int ipos = 0; parseFields(c, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return c; }
Exemple #4
0
		internal IfcCostItem(IfcCostItem i) : base(i) { }