Esempio n. 1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (mDestabilizingLoad == IfcLogicalEnum.UNKNOWN)
     {
         if (mDatabase.Release == ReleaseVersion.IFC2x3)
         {
             obj["DestabilizingLoad"] = false;
         }
     }
     else
     {
         obj["DestabilizingLoad"] = mDestabilizingLoad == IfcLogicalEnum.TRUE;
     }
     if (mCausedBy > 0)
     {
         obj["CausedBy"] = CausedBy.getJson(this, processed);
     }
 }
Esempio n. 2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (mDestabilizingLoad == IfcLogicalEnum.UNKNOWN)
     {
         if (mDatabase.Release < ReleaseVersion.IFC4)
         {
             obj["DestabilizingLoad"] = false;
         }
     }
     else
     {
         obj["DestabilizingLoad"] = mDestabilizingLoad == IfcLogicalEnum.TRUE;
     }
     if (mCausedBy > 0)
     {
         obj["CausedBy"] = CausedBy.getJson(this, options);
     }
 }