2026 Method
Changes 4
M

FabricationPart.AlignPartByConnectors

Description:
Moves fabrication part by one of its connectors and aligns it to another connector.
public static bool AlignPartByConnectors(
	Document document,
	Connector connector,
	Connector toConnector,
	double axisRotation
)
  • document
    The document.
  • connector
    The connector of the fabrication part to move and align by.
  • toConnector
    The connector of the fabrication part or family to align to.
  • Double
    axisRotation
    Rotation around the direction of connection - angle between width vectors in radians.
Return Value Boolean True if alignment succeeds, false otherwise.
  • 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.
  • A non-optional argument was null