RVTDocs.com
Namespace: Autodesk.Revit.DB Class: PartUtils

PartUtils.HasAssociatedParts(Document, ElementId)

Method
Description:
Checks if an element has associated parts.
Syntax
public static bool HasAssociatedParts(
	Document hostDocument,
	ElementId elementId
)
Parameters
Parameter Type Description
hostDocument Document The document.
elementId ElementId The element to be checked for associated Parts
Return Value
Type Description
Boolean True if the element has associated Parts.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null