ChangeRegionWidth Method


Compound Structure Change Region Width Method

Adjust the width of an existing simple region.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool ChangeRegionWidth(
	int regionId,
	double newWidth
)

Parameters

regionId Int32
The id of a region.
newWidth Double
The desired width of the specified region.

Return Value

Boolean
True if newWidth is zero and the region was deleted.
Exceptions
Exception Condition
ArgumentException It is not a valid region id. -or- It is not a simple region.
InvalidOperationException This operation is valid only for vertically compound structures.
Remarks
If width is changed to zero, the effect is to delete the region.
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 →