FabricationPartRotateConnectedPartByConnector Method |
Rotates a connected fabrication part around the axis of the specified connector.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static void RotateConnectedPartByConnector(
Document document,
Connector connector,
double axisRotationBy
)
Public Shared Sub RotateConnectedPartByConnector (
document As Document,
connector As Connector,
axisRotationBy As Double
)
public:
static void RotateConnectedPartByConnector(
Document^ document,
Connector^ connector,
double axisRotationBy
)
static member RotateConnectedPartByConnector :
document : Document *
connector : Connector *
axisRotationBy : float -> unit
Parameters
- document Document
-
The document.
- connector Connector
-
The connected connector of the fabrication part to be rotated.
- axisRotationBy Double
-
The angle in radians to rotate by.
ExceptionsException | Condition |
---|
ArgumentException |
For rectangular and oval parts the axis rotation must be a multiple of PI/2.
-or-
The connector does not belong to a fabrication part.
-or-
Connector is not connected.
-or-
Connector belongs to a fabrication part tap.
-or-
Fabrication part cannot be rotated because it is either unable to be re-sized or it is too constrained.
|
ArgumentNullException |
A non-optional argument was null
|
InvalidOperationException |
rotate failed because the fabrication part geometry could not be modified accordingly.
|
Remarks
Attempts to resize rectangular and oval ends if the angle is a multiple of PI/2.
Taps cannot be rotated.
For rectangular and oval profiles only 90, 180 and 270 degree rotations are valid.
See Also