RotateProfile Method


Rotate a profile of the form, by a specified angle around a given axis.

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

Syntax

C#
public void RotateProfile(
	int profileIndex,
	Line axis,
	double angle
)
Visual Basic
Public Sub RotateProfile ( _
	profileIndex As Integer, _
	axis As Line, _
	angle As Double _
)
Visual C++
public:
void RotateProfile(
	int profileIndex, 
	Line^ axis, 
	double angle
)

Parameters

profileIndex
Type: SystemInt32
Index to specify the profile.
axis
Type: Autodesk.Revit.DBLine
An unbounded line that represents the axis of rotation.
angle
Type: SystemDouble
The angle, in radians, by which the element is to be rotated around the specified axis.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →