Ejemplo n.º 1
0
 public IfcWindow(IfcOpeningElement host, IfcObjectPlacement placement, IfcProductDefinitionShape representation) :
     base(host.Database)
 {
     ObjectPlacement = placement;
     Representation  = representation;
     IfcRelFillsElement relFillsElement = new IfcRelFillsElement(host, this);
 }
Ejemplo n.º 2
0
 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;
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
		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++]); }
Ejemplo n.º 4
0
		internal static IfcRelFillsElement Parse(string strDef) { IfcRelFillsElement i = new IfcRelFillsElement(); int ipos = 0; parseFields(i, ParserSTEP.SplitLineFields(strDef), ref ipos); return i; }
Ejemplo n.º 5
0
		internal IfcRelFillsElement(IfcRelFillsElement f) : base(f) { mRelatingOpeningElement = f.mRelatingOpeningElement; mRelatedBuildingElement = f.mRelatedBuildingElement; }
Ejemplo n.º 6
0
 public IfcWindow(IfcObjectDefinition host, IfcOpeningElement openingElement, IfcObjectPlacement placement, IfcProductRepresentation representation) :
     this(host, placement, representation)
 {
     IfcRelFillsElement relFillsElement = new IfcRelFillsElement(openingElement, this);
 }