internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed) { base.SetXML(xml, host, processed); xml.AppendChild(Directrix.GetXML(xml.OwnerDocument, "Directrix", this, processed)); if (StartDistance != null) { xml.AppendChild(StartDistance.GetXML(xml.OwnerDocument, "StartDistance", this, processed)); } if (EndDistance != null) { xml.AppendChild(EndDistance.GetXML(xml.OwnerDocument, "EndDistance", this, processed)); } }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed) { base.SetXML(xml, host, processed); xml.AppendChild(Directrix.GetXML(xml.OwnerDocument, "Directrix", this, processed)); if (!double.IsNaN(mStartParam)) { xml.SetAttribute("StartParam", mStartParam.ToString()); } if (!double.IsNaN(mEndParam)) { xml.SetAttribute("EndParam", mEndParam.ToString()); } }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed) { base.SetXML(xml, host, processed); xml.AppendChild(Directrix.GetXML(xml.OwnerDocument, "Directrix", this, processed)); if (mDatabase != null && mDatabase.Release < ReleaseVersion.IFC4X3_RC2) { IfcParameterValue startParameter = mStartParam as IfcParameterValue; if (startParameter != null) { xml.SetAttribute("StartParam", startParameter.Measure.ToString()); } IfcParameterValue endParameter = mEndParam as IfcParameterValue; if (endParameter != null) { xml.SetAttribute("EndParam", endParameter.Measure.ToString()); } } }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed) { base.SetXML(xml, host, processed); xml.AppendChild(Directrix.GetXML(xml.OwnerDocument, "Directrix", this, processed)); xml.AppendChild(Inclinating.GetXML(xml.OwnerDocument, "Inclinating", this, processed)); }