MechanicalUtils.ConvertDuctPlaceholders
Method
Description:
Converts a collection of duct placeholder elements into duct elements.
Converts a collection of duct placeholder elements into duct elements.
Remarks:
Once conversion succeeds, the duct placeholder elements are deleted. The new duct and fitting elements are created and connections are established.
Once conversion succeeds, the duct placeholder elements are deleted. The new duct and fitting elements are created and connections are established.
Syntax
public static ICollection<ElementId> ConvertDuctPlaceholders(
Document document,
ICollection<ElementId> placeholderIds
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document. |
placeholderIds | ICollection | A collection of element IDs of duct placeholders. |
Return Value
Type | Description |
---|---|
ICollection | A collection of element IDs of ducts and fittings. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | The given element id set is empty. -or- The given element IDs (placeholderIds) are not duct placeholders. -or- The elements belong to different types of system. |
ArgumentNullException | A non-optional argument was null |