Accessing wall layers using the Revit API

By Saikat Bhattacharya

The layers that comprise of a wall can be extracted not from the given wall but the WallType. The WallType for any given wall exposes a property called CompoundStructure, and this returns the compound structure of the element. Using the CompoundStructure.Layers property, we can subsequently access the CompoundStructureLayerArray which is an array of the Compound Structure layer and each of the layer that we have access to now, provides access to information like width, material, function, etc.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading