GeometryGym.Ifc.IfcQuantityLength.parseFields C# (CSharp) Méthode

parseFields() static private méthode

static private parseFields ( IfcQuantityLength q, List arrFields, int &ipos, ReleaseVersion schema ) : void
q IfcQuantityLength
arrFields List
ipos int
schema ReleaseVersion
Résultat void
        internal static void parseFields(IfcQuantityLength q, List<string> arrFields, ref int ipos, ReleaseVersion schema)
        {
            IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos);
            string str = arrFields[ipos++];
            if (!double.TryParse(str, out q.mLengthValue))
            {
                if (str.StartsWith("IFCLENGTHMEASURE"))
                {
                    str = str.Substring(17, str.Length - 18);
                    double.TryParse(str, out q.mLengthValue);
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
                q.mFormula = arrFields[ipos++].Replace("'", "");
        }