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(ObjectType != null ? ObjectType.ToStepValue() : "$"); parameters.Add(LongName != null ? LongName.ToStepValue() : "$"); parameters.Add(Phase != null ? Phase.ToStepValue() : "$"); parameters.Add(RepresentationContexts != null ? RepresentationContexts.ToStepValue() : "$"); parameters.Add(UnitsInContext != null ? UnitsInContext.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed) { XmlElement repContexts = null; if (mRepresentationContexts.Count > 0) { repContexts = xml.OwnerDocument.CreateElement("RepresentationContexts"); foreach (IfcRepresentationContext rc in RepresentationContexts) { repContexts.AppendChild(rc.GetXML(xml.OwnerDocument, "", this, processed)); } } base.SetXML(xml, host, processed); setAttribute(xml, "ObjectType", ObjectType); setAttribute(xml, "LongName", LongName); setAttribute(xml, "Phase", Phase); if (repContexts != null) { xml.AppendChild(repContexts); } if (mUnitsInContext > 0) { xml.AppendChild(UnitsInContext.GetXML(xml.OwnerDocument, "UnitsInContext", this, processed)); } if (mIsDefinedBy.Count > 0) { XmlElement element = xml.OwnerDocument.CreateElement("IsDefinedBy"); xml.AppendChild(element); foreach (IfcRelDefines rd in IsDefinedBy) { element.AppendChild(rd.GetXML(xml.OwnerDocument, "", this, processed)); } } if (mDeclares.Count > 0) { XmlElement element = xml.OwnerDocument.CreateElement("Declares"); xml.AppendChild(element); foreach (IfcRelDeclares rd in Declares) { element.AppendChild(rd.GetXML(xml.OwnerDocument, "", this, processed)); } } }