Inheritance: IfcElementComponent
Example #1
0
		internal static void parseFields(IfcDiscreteAccessory a, List<string> arrFields, ref int ipos, Schema schema)
		{
			IfcElementComponent.parseFields(a, arrFields, ref ipos);
			if (schema != Schema.IFC2x3)
			{
				string s = arrFields[ipos++];
				if (s.StartsWith("."))
					a.mPredefinedType = (IfcDiscreteAccessoryTypeEnum)Enum.Parse(typeof(IfcDiscreteAccessoryTypeEnum), s.Replace(".", ""));
			}
		}
Example #2
0
		internal IfcDiscreteAccessory(IfcDiscreteAccessory a) : base(a) { mPredefinedType = a.mPredefinedType; }
Example #3
0
		internal static IfcDiscreteAccessory Parse(string strDef, Schema schema) { int ipos = 0; IfcDiscreteAccessory a = new IfcDiscreteAccessory(); parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return a; }
Example #4
0
		internal IfcDiscreteAccessory(DatabaseIfc db, IfcDiscreteAccessory a) : base(db, a) { mPredefinedType = a.mPredefinedType; }