Revit.SDK.Samples.EnergyAnalysisModel.CS.EnergyAnalysisModel.SurfacesToXElement C# (CSharp) Метод

SurfacesToXElement() приватный Метод

The method adds given surfaces to specific XElement
private SurfacesToXElement ( System.Xml.Linq.XElement node, IList analyticalSurfaces ) : void
node System.Xml.Linq.XElement Parent node
analyticalSurfaces IList The surfaces list that will be added into the para node
Результат void
        private void SurfacesToXElement(XElement node, IList<EnergyAnalysisSurface> analyticalSurfaces)
        {
            // go through all surfaces
            foreach (EnergyAnalysisSurface surface in analyticalSurfaces)
            {
                XElement surfaceNode = new XElement("Surface");
                surfaceNode.Add(new XAttribute("Name", surface.Name));
                // add individual surface node to parent node
                node.Add(surfaceNode);
            }
        }