protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["RelatingType"] = RelatingType.getJson(this, options); //List<IfcObject> relatedObjects = RelatedObjects; //JArray array = new JArray(); //foreach (IfcObject obj in relatedObjects) // array.Add(obj.Index); //obj["RelatedObjects"] = array; }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed) { base.SetXML(xml, host, processed); xml.AppendChild(RelatingType.GetXML(xml.OwnerDocument, "RelatingType", this, processed)); }