RotateConnectedTap Method


Rotates a connected fabrication tap by the specified angles about the primary and secondary axis.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2016 Subscription Release

Syntax

C#
public static void RotateConnectedTap(
	Document document,
	FabricationPart tap,
	double primaryAxisRotateBy,
	double secondaryAxisRotateBy
)
Visual Basic
Public Shared Sub RotateConnectedTap ( _
	document As Document, _
	tap As FabricationPart, _
	primaryAxisRotateBy As Double, _
	secondaryAxisRotateBy As Double _
)
Visual C++
public:
static void RotateConnectedTap(
	Document^ document, 
	FabricationPart^ tap, 
	double primaryAxisRotateBy, 
	double secondaryAxisRotateBy
)

Parameters

document
Type: Autodesk.Revit.DBDocument
The document.
tap
Type: Autodesk.Revit.DBFabricationPart
The connected fabrication part tap to rotate.
primaryAxisRotateBy
Type: SystemDouble
The primary axis rotation angle in radians to rotate by.
secondaryAxisRotateBy
Type: SystemDouble
The secondary axis rotation angle in radians to rotate by.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Is not connected as a fabrication part tap. -or- tap cannot be rotated about the primary axis by the specified angle: primaryAxisRotateBy -or- tap cannot be rotated about the secondary axis by the specified angle: secondaryAxisRotateBy
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

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 →