/// <summary> /// Create the IFCProfileSet in the document /// </summary> /// <param name="doc"></param> public void Create(Document doc) { if (ForProfileSet != null) { ForProfileSet.Create(doc); } }
/// <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())); }
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); } }
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; } }