protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
if (host.mIndex != mRelatingProfileProperties)
obj["RelatingProfileProperties"] = mDatabase[mRelatingProfileProperties].getJson(this, processed);
if (mProfileSectionLocation > 0 && host.mIndex != mProfileSectionLocation)
obj["ProfileSectionLocation"] = mDatabase[mProfileSectionLocation].getJson(this, processed);
if (mProfileOrientation > 0)
obj["ProfileOrientation"] = mDatabase[mProfileOrientation].getJson(this, processed);
else if (!double.IsNaN(mProfileOrientationValue))
{
JObject jobj = new JObject();
jobj["IfcPlaneAngleMeasure"] = mProfileOrientationValue;
obj["ProfileOrientation"] = jobj;
}
}
}