protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
//internal List<IfcRelAssigns> mHasAssignments = new List<IfcRelAssigns>();// : SET OF IfcRelAssigns FOR RelatedObjects;
//internal IfcRelNests mNests = null;// : SET [0:1] OF IfcRelNests FOR RelatedObjects;
//internal List<IfcRelNests> mIsNestedBy = new List<IfcRelNests>();// : SET OF IfcRelNests FOR RelatingObject;
//internal IfcRelDeclares mHasContext = null;// : SET [0:1] OF IfcRelDeclares FOR RelatedDefinitions;
//internal List<IfcRelAggregates> mIsDecomposedBy = new List<IfcRelAggregates>();// : SET OF IfcRelDecomposes FOR RelatingObject;
if (mHasAssignments.Count > 0)
{
JArray array = new JArray();
foreach (IfcRelAssigns ra in HasAssignments)
{
if(ra.mIndex != host.mIndex)
array.Add(ra.getJson(this, processed));
}
if(array.Count > 0)
obj["HasAssignments"] = array;
}
if (mIsNestedBy.Count > 0)
{
JArray array = new JArray();
foreach (IfcRelNests rn in IsNestedBy)
array.Add(rn.getJson(this, processed));
obj["IsNestedBy"] = array;
}
if (mIsDecomposedBy.Count > 0)
{
JArray array = new JArray();
foreach (IfcRelAggregates agg in IsDecomposedBy)
array.Add(agg.getJson(this, processed));
obj["IsDecomposedBy"] = array;
}
if (mHasAssociations.Count > 0)
{
JArray array = new JArray();
foreach (IfcRelAssociates agg in HasAssociations)
array.Add(agg.getJson(this, processed));
obj["HasAssociations"] = array;
}
}