예제 #1
0
 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));
     }
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 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());
         }
     }
 }
예제 #4
0
 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));
 }