2027 Method
Changes 0
M

PlumbingUtils.ConnectPipePlaceholdersAtCross

Description:
Connects placeholders that looks like Cross connection.
Remarks:
If connection fails, the placeholders cannot be physically connected.
public static bool ConnectPipePlaceholdersAtCross(
	Document document,
	ElementId placeholder1Id,
	ElementId placeholder2Id,
	ElementId placeholder3Id
)
  • document
    The document.
  • placeholder1Id
    The first element Id of pipe placeholder.
  • placeholder2Id
    The second element Id of pipe placeholder that intersects with first one.
  • placeholder3Id
    The third element Id of pipe placeholder that intersects with first one.
Return Value Boolean True if connection succeeds, false otherwise.
  • The element id placeholder1Id is not pipe placeholder. -or- The element id placeholder2Id is not pipe placeholder. -or- The element id placeholder3Id is not pipe placeholder. -or- The elements belong to different types of system. -or- The curve placeholder2Id does not connect on the curve placeholder1Id or vice versa. -or- The curve placeholder3Id does not connect on the curve placeholder1Id or vice versa. -or- The curve placeholder2Id and placeholder3Id are not collinear.
  • A non-optional argument was null