Exemplo n.º 1
0
 /// <summary>
 /// Create the IFCProfileSet in the document
 /// </summary>
 /// <param name="doc"></param>
 public void Create(Document doc)
 {
     if (ForProfileSet != null)
     {
         ForProfileSet.Create(doc);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Get list of materials
        /// </summary>
        /// <returns></returns>
        public IList <IFCMaterial> GetMaterials()
        {
            if (ForProfileSet == null)
            {
                return(new List <IFCMaterial>());
            }

            return(ForProfileSet.GetMaterials());
        }
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(ForProfileSet != null ? ForProfileSet.ToStepValue() : "$");
            parameters.Add(CardinalPoint != null ? CardinalPoint.ToStepValue() : "$");
            parameters.Add(ReferenceExtent != null ? ReferenceExtent.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Exemplo n.º 4
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     xml.AppendChild(ForProfileSet.GetXML(xml.OwnerDocument, "ForProfileSet", this, processed));
     if (mCardinalPoint != IfcCardinalPointReference.DEFAULT)
     {
         xml.SetAttribute("CardinalPoint", ((int)mCardinalPoint).ToString());
     }
     if (!double.IsNaN(mReferenceExtent))
     {
         setAttribute(xml, "ReferenceExtent", ReferenceExtent);
     }
 }
Exemplo n.º 5
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     obj["ForProfileSet"] = ForProfileSet.getJson(this, options);
     if (mCardinalPoint != IfcCardinalPointReference.DEFAULT)
     {
         obj["CardinalPoint"] = (int)mCardinalPoint;
     }
     if (!double.IsNaN(mReferenceExtent))
     {
         obj["ReferenceExtent"] = mReferenceExtent;
     }
 }