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("'", ""); }
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; }
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("'", ""); } }
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); }
internal IfcQuantityArea(DatabaseIfc db, IfcQuantityArea q) : base(db, q) { mAreaValue = q.mAreaValue; mFormula = q.mFormula; }
internal IfcQuantityArea(DatabaseIfc db, IfcQuantityArea q) : base(db,q) { mAreaValue = q.mAreaValue; mFormula = q.mFormula; }
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; }
internal IfcQuantityArea(IfcQuantityArea q) : base(q) { mAreaValue = q.mAreaValue; }
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); }