protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (host == null || host.mIndex != mRelatingStructuralMember)
     {
         obj["RelatingStructuralMember"] = RelatingStructuralMember.getJson(host, options);
     }
     if (host == null || host.mIndex != mRelatedStructuralConnection)
     {
         obj["RelatedStructuralConnection"] = RelatedStructuralConnection.getJson(host, options);
     }
     if (mAppliedCondition > 0)
     {
         obj["AppliedCondition"] = AppliedCondition.getJson(this, options);
     }
     if (mAdditionalConditions > 0)
     {
         obj["AdditionalConditions"] = AdditionalConditions.getJson(this, options);
     }
     if (mSupportedLength > 0)
     {
         obj["SupportedLength"] = SupportedLength;
     }
     if (mConditionCoordinateSystem > 0)
     {
         obj["ConditionCoordinateSystem"] = ConditionCoordinateSystem.getJson(this, options);
     }
 }
Beispiel #2
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);

            if (mAppliedCondition > 0)
            {
                obj["AppliedCondition"] = AppliedCondition.getJson(this, processed);
            }
        }
Beispiel #3
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);

            if (mAppliedCondition > 0)
            {
                obj["AppliedCondition"] = AppliedCondition.getJson(this, options);
            }
            JArray array = new JArray();

            foreach (IfcRelConnectsStructuralMember connects in mConnectsStructuralMembers)
            {
                IfcStructuralMember member = connects.RelatingStructuralMember;
                if (host == null || member.mIndex != host.mIndex)
                {
                    array.Add(member.getJson(this, options));
                }
            }
            if (array.Count > 0)
            {
                obj["ConnectsStructuralMembers"] = array;
            }
        }