SetLayers Method


Compound Structure Set Layers Method

Completely resets this CompoundStructure and applies a new set of layers.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetLayers(
	IList<CompoundStructureLayer> layers
)

Parameters

layers IList CompoundStructureLayer
The layers to be set.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
This function will replace all existing layers with the contents of the input. This provides a full reset for the CompoundStructure. Therefore:
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →