Exemplo n.º 1
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(GlobalId != null ? GlobalId.ToStepValue() : "$");
            parameters.Add(OwnerHistory != null ? OwnerHistory.ToStepValue() : "$");
            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(RelatingSystem != null ? RelatingSystem.ToStepValue() : "$");
            parameters.Add(RelatedBuildings != null ? RelatedBuildings.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Exemplo n.º 2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (mRelatingSystem != host.mIndex)
     {
         obj["RelatingSystem"] = RelatingSystem.getJson(this, options);
     }
     //List<IfcObjectDefinition> relatedObjects = RelatedObjects;
     //JArray array = new JArray();
     //foreach (IfcObjectDefinition od in relatedObjects)
     //	array.Add(od.getJson(this, options));
     //obj["RelatedObjects"] = array;
 }
Exemplo n.º 3
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     xml.AppendChild(RelatingSystem.GetXML(xml.OwnerDocument, "RelatingSystem", this, processed));
 }