public IfcWindow(IfcOpeningElement host, IfcObjectPlacement placement, IfcProductDefinitionShape representation) : base(host.Database) { ObjectPlacement = placement; Representation = representation; IfcRelFillsElement relFillsElement = new IfcRelFillsElement(host, this); }
internal override void ParseXml(XmlElement xml) { base.ParseXml(xml); if (xml.HasAttribute("PredefinedType")) { Enum.TryParse <IfcOpeningElementTypeEnum>(xml.Attributes["PredefinedType"].Value, true, out mPredefinedType); } foreach (XmlNode child in xml.ChildNodes) { string name = child.Name; if (string.Compare(name, "HasFillings") == 0) { foreach (XmlNode node in child.ChildNodes) { IfcRelFillsElement fills = mDatabase.ParseXml <IfcRelFillsElement>(node as XmlElement); if (fills != null) { fills.RelatingOpeningElement = this; } } } } }
internal static void parseFields(IfcRelFillsElement i, List<string> arrFields, ref int ipos) { IfcRelConnects.parseFields(i, arrFields, ref ipos); i.mRelatingOpeningElement = ParserSTEP.ParseLink(arrFields[ipos++]); i.mRelatedBuildingElement = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal static IfcRelFillsElement Parse(string strDef) { IfcRelFillsElement i = new IfcRelFillsElement(); int ipos = 0; parseFields(i, ParserSTEP.SplitLineFields(strDef), ref ipos); return i; }
internal IfcRelFillsElement(IfcRelFillsElement f) : base(f) { mRelatingOpeningElement = f.mRelatingOpeningElement; mRelatedBuildingElement = f.mRelatedBuildingElement; }
public IfcWindow(IfcObjectDefinition host, IfcOpeningElement openingElement, IfcObjectPlacement placement, IfcProductRepresentation representation) : this(host, placement, representation) { IfcRelFillsElement relFillsElement = new IfcRelFillsElement(openingElement, this); }