Share

ArrangeComponent.setRotationUsingEdge Method

Parent Object: ArrangeComponent

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/Arrange/ArrangeComponent.h>

Description

Sets the rotation angle using the specified edge such that the edge is pointing in the zero rotation angle. This is a convenience method to set the rotation angle. The rotation property can be used to accomplish the same result.

This is only valid for 2D True Shape arrangements and will fail for 2D rectangular and 3D arrangements.

Syntax

"arrangeComponent_var" is a variable referencing an ArrangeComponent object.
returnValue = arrangeComponent_var.setRotationUsingEdge(edge)

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
edge BRepEdge The BRepEdge object being used to define rotation of the component.

Version

Introduced in version January 2025

Was this information helpful?