Пример #1
0
    {                                                                          //,IfcCompositeProfileDef ,IfcDerivedProfileDef ,IfcParameterizedProfileDef));  IFC2x3 abstract
        internal override void parseJObject(JObject obj)
        {
            base.parseJObject(obj);
            JToken token = obj.GetValue("ProfileType", StringComparison.InvariantCultureIgnoreCase);

            if (token != null)
            {
                Enum.TryParse <IfcProfileTypeEnum>(token.Value <string>(), true, out mProfileType);
            }
            token = obj.GetValue("ProfileName", StringComparison.InvariantCultureIgnoreCase);
            if (token != null)
            {
                ProfileName = token.Value <string>();
            }

            HasExternalReference.AddRange(mDatabase.extractJArray <IfcExternalReferenceRelationship>(obj.GetValue("HasExternalReference", StringComparison.InvariantCultureIgnoreCase) as JArray));
            HasProperties.AddRange(mDatabase.extractJArray <IfcProfileProperties>(obj.GetValue("HasProperties", StringComparison.InvariantCultureIgnoreCase) as JArray));
        }
Пример #2
0
 internal override void parseJObject(JObject obj)
 {
     base.parseJObject(obj);
     HasProperties.AddRange(mDatabase.extractJArray <IfcMaterialProperties>(obj.GetValue("HasProperties", StringComparison.InvariantCultureIgnoreCase) as JArray));
 }