Inheritance: GeometryGym.Ifc.IfcPhysicalSimpleQuantity
Beispiel #1
0
 internal static void parseFields(IfcQuantityWeight q, List <string> arrFields, ref int ipos, ReleaseVersion schema)
 {
     IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos); q.mWeightValue = ParserSTEP.ParseDouble(arrFields[ipos++]); if (schema != ReleaseVersion.IFC2x3)
     {
         q.mFormula = arrFields[ipos++].Replace("'", "");
     }
 }
Beispiel #2
0
        internal static IfcQuantityWeight Parse(string str, ReleaseVersion schema)
        {
            IfcQuantityWeight q = new IfcQuantityWeight();
            int pos = 0, len = str.Length;

            q.Parse(str, ref pos, len);
            string s = ParserSTEP.StripField(str, ref pos, len);

            if (!double.TryParse(s, out q.mWeightValue))
            {
                IfcMeasureValue mv = ParserIfc.parseMeasureValue(s);
                if (mv != null)
                {
                    q.mWeightValue = mv.Measure;
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
Beispiel #3
0
 internal IfcQuantityWeight(DatabaseIfc db, IfcQuantityWeight q) : base(db, q)
 {
     mWeightValue = q.mWeightValue; mFormula = q.mFormula;
 }
Beispiel #4
0
 internal static IfcQuantityWeight Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityWeight q = new IfcQuantityWeight();
     int pos = 0, len = str.Length;
     q.Parse(str, ref pos, len);
     string s = ParserSTEP.StripField(str, ref pos, len);
     if (!double.TryParse(s, out q.mWeightValue))
     {
         IfcMeasureValue mv = ParserIfc.parseMeasureValue(s);
         if (mv != null)
             q.mWeightValue = mv.Measure;
     }
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula = ParserSTEP.StripString(str, ref pos, len);
     return q;
 }
Beispiel #5
0
 internal static void parseFields(IfcQuantityWeight q, List<string> arrFields, ref int ipos, ReleaseVersion schema)
 {
     IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos); q.mWeightValue = ParserSTEP.ParseDouble(arrFields[ipos++]); if (schema != ReleaseVersion.IFC2x3) q.mFormula = arrFields[ipos++].Replace("'", "");
 }
Beispiel #6
0
 internal IfcQuantityWeight(DatabaseIfc db, IfcQuantityWeight q)
     : base(db,q)
 {
     mWeightValue = q.mWeightValue; mFormula = q.mFormula;
 }
Beispiel #7
0
		internal static IfcQuantityWeight Parse(string strDef, Schema schema) { IfcQuantityWeight q = new IfcQuantityWeight(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return q; }
Beispiel #8
0
		internal IfcQuantityWeight(IfcQuantityWeight q) : base(q) { mWeightValue = q.mWeightValue; }
Beispiel #9
0
 internal static IfcQuantityWeight Parse(string strDef, ReleaseVersion schema)
 {
     IfcQuantityWeight q = new IfcQuantityWeight(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(q);
 }
Beispiel #10
0
 internal IfcQuantityWeight(IfcQuantityWeight q) : base(q)
 {
     mWeightValue = q.mWeightValue;
 }