2027 Method
Changes 0
M

PlumbingUtils.ConvertPipePlaceholders

Description:
Converts a collection of pipe placeholder elements into pipe elements.
Remarks:
Once conversion succeeds, the pipe placeholder elements are deleted. The new pipe and fitting elements are created and connections are established.
public static ICollection<ElementId> ConvertPipePlaceholders(
	Document document,
	ICollection<ElementId> placeholderIds
)
  • document
    The document.
  • ICollection<ElementId>
    placeholderIds
    A collection of element IDs of pipe placeholders.
Return Value ICollection<ElementId> A collection of element IDs of pipe and fitting.
  • The given element id set is empty. -or- The given element ids (placeholderIds) are not pipe placeholders. -or- The elements belong to different types of system.
  • A non-optional argument was null