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

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

            if (!double.TryParse(s, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mCountValue))
            {
                if (s.StartsWith("IFCCOUNTMEASURE"))
                {
                    s = s.Substring(16, s.Length - 17);
                    double.TryParse(s, out q.mCountValue);
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
示例#3
0
 internal IfcQuantityCount(DatabaseIfc db, IfcQuantityCount q) : base(db, q)
 {
     mCountValue = q.mCountValue; mFormula = q.mFormula;
 }
示例#4
0
 internal static IfcQuantityCount Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityCount q = new IfcQuantityCount();
     int pos = 0, len = str.Length;
     q.Parse(str, ref pos, len);
     string s = ParserSTEP.StripField(str, ref pos, len);
     if (!double.TryParse(s, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mCountValue))
     {
         if (s.StartsWith("IFCCOUNTMEASURE"))
         {
             s = s.Substring(16, s.Length - 17);
             double.TryParse(s, out q.mCountValue);
         }
     }
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula = ParserSTEP.StripString(str, ref pos, len);
     return q;
 }
示例#5
0
 internal IfcQuantityCount(DatabaseIfc db, IfcQuantityCount q)
     : base(db,q)
 {
     mCountValue = q.mCountValue; mFormula = q.mFormula;
 }
示例#6
0
		internal static IfcQuantityCount Parse(string strDef, Schema schema) { IfcQuantityCount q = new IfcQuantityCount(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return q; }
示例#7
0
		internal static void parseFields(IfcQuantityCount q, List<string> arrFields, ref int ipos, Schema schema) { IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos); q.mCountValue = ParserSTEP.ParseDouble(arrFields[ipos++]); if (schema != Schema.IFC2x3) q.mFormula = arrFields[ipos++].Replace("'", ""); }
示例#8
0
		internal IfcQuantityCount(IfcQuantityCount q) : base(q) { mCountValue = q.mCountValue; }
示例#9
0
 internal static IfcQuantityCount Parse(string strDef, ReleaseVersion schema)
 {
     IfcQuantityCount q = new IfcQuantityCount(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(q);
 }
示例#10
0
 internal IfcQuantityCount(IfcQuantityCount q) : base(q)
 {
     mCountValue = q.mCountValue;
 }