Moves fabrication part by one of its connectors and aligns it to another connector.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2016
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document.
- connector
- Type: Autodesk.Revit.DBConnector
The connector of the fabrication part to move and align by.
- toConnector
- Type: Autodesk.Revit.DBConnector
The connector of the fabrication part or family to align to.
- axisRotation
- Type: SystemDouble
Rotation around the direction of connection - angle between width vectors in radians.
Return Value
True if alignment succeeds, false otherwise.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | 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- The fabrication part is connected. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |