ChangeRegionWidth Method


Adjust the width of an existing simple region.

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

Syntax

C#
public bool ChangeRegionWidth(
	int regionId,
	double newWidth
)
Visual Basic
Public Function ChangeRegionWidth ( _
	regionId As Integer, _
	newWidth As Double _
) As Boolean
Visual C++
public:
bool ChangeRegionWidth(
	int regionId, 
	double newWidth
)

Parameters

regionId
Type: SystemInt32
The id of a region.
newWidth
Type: SystemDouble
The desired width of the specified region.

Return Value

True if newWidth is zero and the region was deleted.

Remarks

If width is changed to zero, the effect is to delete the region.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException It is not a valid region id. -or- It is not a simple region.
Autodesk.Revit.ExceptionsInvalidOperationException This operation is valid only for vertically compound structures.

See Also