protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
JArray array = new JArray();
foreach (IfcShapeModel sm in ShapeRepresentations)
array.Add(sm.getJson(this, processed));
obj["ShapeRepresentations"] = array;
setAttribute(obj, "Name", Name);
setAttribute(obj, "Description", Description);
setAttribute(obj, "ProductDefinitional", mProductDefinitional.ToString());
if (mPartOfProductDefinitionShape > 0 && mPartOfProductDefinitionShape != host.mIndex)
obj["PartOfProductDefinitionShape"] = mDatabase[mPartOfProductDefinitionShape].getJson(this, processed);
}
}