2027 Method
Changes 0
M

FabricationPart.AlignPartByConnector

Description:
Align the part by its connector to a point and rotation in free space.
public static bool AlignPartByConnector(
	Document document,
	Connector connector,
	XYZ position,
	double rotation,
	double rotationPerpendicular,
	double slope,
	FabricationPartJustification justification,
	Transform trf
)
  • document
    The document.
  • connector
    The connector to align in free space.
  • position
    The position to move the connector to.
  • Double
    rotation
    The rotation in radians.
  • Double
    rotationPerpendicular
    The perpendicular rotation for free placement around the Y axis direction of connection - angle in radians.
  • Double
    slope
    The slope value to flex to match if possible in fractional units (eg.1/50). Positive values are up, negative are down. Slopes can only be applied to fittings, whilst straights will inherit the slope from the piece it is connecting to.
  • justification
    The justification to align eccentric parts.
  • trf
    Optional alignment transformation matrix, eg. a Trf that describes plan or side elevation.
Return Value Boolean True if the alignment succeeds, false otherwise.