Revit 2020 API |
PartUtils..::..HasAssociatedParts Method (Document, ElementId) |
PartUtils Class See Also |
Checks if an element has associated parts.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since:
2012
Syntax
C# |
---|
public static bool HasAssociatedParts( Document hostDocument, ElementId elementId ) |
Visual Basic |
---|
Public Shared Function HasAssociatedParts ( _ hostDocument As Document, _ elementId As ElementId _ ) As Boolean |
Visual C++ |
---|
public: static bool HasAssociatedParts( Document^ hostDocument, ElementId^ elementId ) |
Parameters
- hostDocument
- Type: Autodesk.Revit.DB..::..Document
The document.
- elementId
- Type: Autodesk.Revit.DB..::..ElementId
The element to be checked for associated Parts
Return Value
True if the element has associated Parts.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |