Inheritance: GeometryGym.Ifc.IfcPhysicalSimpleQuantity
Beispiel #1
0
		internal static void parseFields(IfcQuantityArea q, List<string> arrFields, ref int ipos, Schema schema)
		{
			IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos);
			string str = arrFields[ipos++];
			if (!double.TryParse(str, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mAreaValue))
			{
				if (str.StartsWith("IFCAREAMEASURE"))
				{
					str = str.Substring(15, str.Length - 16);
					double.TryParse(str, out q.mAreaValue);
				}
			}
			if (schema != Schema.IFC2x3)
				q.mFormula = arrFields[ipos++].Replace("'", "");
		}
Beispiel #2
0
 internal static IfcQuantityArea Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityArea q = new IfcQuantityArea();
     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.mAreaValue))
     {
         if (s.StartsWith("IFCAREAMEASURE"))
         {
             s = s.Substring(15, s.Length - 16);
             double.TryParse(s, out q.mAreaValue);
         }
     }
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula =  ParserSTEP.StripString(str, ref pos, len);
     return q;
 }
Beispiel #3
0
        internal static void parseFields(IfcQuantityArea q, List <string> arrFields, ref int ipos, ReleaseVersion schema)
        {
            IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos);
            string str = arrFields[ipos++];

            if (!double.TryParse(str, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mAreaValue))
            {
                if (str.StartsWith("IFCAREAMEASURE"))
                {
                    str = str.Substring(15, str.Length - 16);
                    double.TryParse(str, out q.mAreaValue);
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = arrFields[ipos++].Replace("'", "");
            }
        }
Beispiel #4
0
        internal static IfcQuantityArea Parse(string str, ReleaseVersion schema)
        {
            IfcQuantityArea q = new IfcQuantityArea();
            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.mAreaValue))
            {
                if (s.StartsWith("IFCAREAMEASURE"))
                {
                    s = s.Substring(15, s.Length - 16);
                    double.TryParse(s, out q.mAreaValue);
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
Beispiel #5
0
 internal IfcQuantityArea(DatabaseIfc db, IfcQuantityArea q) : base(db, q)
 {
     mAreaValue = q.mAreaValue; mFormula = q.mFormula;
 }
Beispiel #6
0
 internal IfcQuantityArea(DatabaseIfc db, IfcQuantityArea q)
     : base(db,q)
 {
     mAreaValue = q.mAreaValue; mFormula = q.mFormula;
 }
Beispiel #7
0
		internal static IfcQuantityArea Parse(string strDef, Schema schema) { IfcQuantityArea q = new IfcQuantityArea(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return q; }
Beispiel #8
0
		internal IfcQuantityArea(IfcQuantityArea q) : base(q) { mAreaValue = q.mAreaValue; }
Beispiel #9
0
 internal static IfcQuantityArea Parse(string strDef, ReleaseVersion schema)
 {
     IfcQuantityArea q = new IfcQuantityArea(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(q);
 }
Beispiel #10
0
 internal IfcQuantityArea(IfcQuantityArea q) : base(q)
 {
     mAreaValue = q.mAreaValue;
 }