2026 Method
Changes 4
M

FabricationPart.PlaceFittingAsCutIn

Description:
Places the fitting on the straight part by cut in, use the fitting's focal point as the insertion position.
public static bool PlaceFittingAsCutIn(
	Document document,
	ElementId straightId,
	ElementId fittingId,
	XYZ position,
	Connector fittingConnector,
	double axisRotation
)
  • document
    The document.
  • straightId
    Identifier of the straight to be cut in.
  • fittingId
    Identifier of the fitting to cut in.
  • position
    The position to cut in the straight.
  • fittingConnector
    The connector of the fitting to align with the primary connector of the straight part.
  • Double
    axisRotation
    Rotation around the direction of connection - angle between width vectors in radians.
Return Value Boolean True if cuts in successful.
  • For rectangular and oval parts the axis rotation must be a multiple of PI/2. -or- The fitting connector is not a connector of the fitting. -or- The fitting connector is not valid, it is not within a pair connector for cutting in.
  • A non-optional argument was null
  • Failed to align fitting to the straight to cut in. -or- There is no enough room in the run for cut in.