PartUtils.ArePartsValidForMerge
Method
Description:
Identifies whether Part elements may be merged.
Identifies whether Part elements may be merged.
Syntax
public static bool ArePartsValidForMerge(
Document document,
ICollection<ElementId> partIds
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document. |
partIds | ICollection | Element ids of Parts. |
Return Value
Type | Description |
---|---|
Boolean | True if all element ids correspond to Part elements, none of the parts already has associated parts, the parts have contiguous geometry, all report the same materials, and all have the same creation and demolition phases. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |