示例#1
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            IfcDimensionalExponents exponents = Dimensions;

            if (exponents != null)
            {
                obj["Dimensions"] = exponents.getJson(this, options);
            }
            obj["UnitType"] = mUnitType.ToString();
        }
示例#2
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);
            IfcDimensionalExponents exponents = Dimensions;

            if (exponents != null)
            {
                obj["Dimensions"] = exponents.getJson(this, processed);
            }
            obj["UnitType"] = mUnitType.ToString();
        }