Revit 2026 API
Compound |
The width implied by this compound structure.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public double GetWidth()
Public Function GetWidth As Double
public: double GetWidth()
member GetWidth : unit -> float
Return Value
DoubleThe width of a host object with this compound structure.

If the structure is not vertically compound, then
this is simply the sum of all layers' widths. If the structure is vertically compound,
this is the width of the rectangular grid stored in the vertically compound structure.
The presence of a layer with variable width has no effect on the value returned by this method. The
value returned assumes that all layers have their specified width.
See Also