CanLayerWidthBeNonZero Method


Identifies if changing the width of an existing layer from zero to a positive value will create a rectangular region.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public bool CanLayerWidthBeNonZero(
	int layerIdx
)
Visual Basic
Public Function CanLayerWidthBeNonZero ( _
	layerIdx As Integer _
) As Boolean
Visual C++
public:
bool CanLayerWidthBeNonZero(
	int layerIdx
)

Parameters

layerIdx
Type: SystemInt32
The index of a CompoundStructureLayer.

Remarks

This is only allowed if there is a vertical line such that all regions to the left are assigned to layers with index < layerIdx, and all regions to the right are assigned to layers with index > layerIdx.

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 →