GeometryGym.Ifc.IfcShapeAspect.SetXML C# (CSharp) Méthode

SetXML() private méthode

private SetXML ( XmlElement xml, BaseClassIfc host, HashSet processed ) : void
xml XmlElement
host BaseClassIfc
processed HashSet
Résultat void
        internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
        {
            base.SetXML(xml, host, processed);
            XmlElement element = xml.OwnerDocument.CreateElement("ShapeRepresentations");
            xml.AppendChild(element);
            foreach (IfcShapeModel s in ShapeRepresentations)
                element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
            setAttribute(xml, "Name", Name);
            setAttribute(xml, "Description", Description);
            xml.SetAttribute("ProductDefinitional", ProductDefinitional.ToString().ToLower());
            if (mPartOfProductDefinitionShape > 0)
                xml.AppendChild(mDatabase[mPartOfProductDefinitionShape].GetXML(xml.OwnerDocument, "PartOfProductDefinitionShape", this, processed));
        }