Returns true if the element is a physical element.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2023
Syntax
C# |
---|
public static bool IsPhysicalElement( Document doc, ElementId id ) |
Visual Basic |
---|
Public Shared Function IsPhysicalElement ( _ doc As Document, _ id As ElementId _ ) As Boolean |
Visual C++ |
---|
public: static bool IsPhysicalElement( Document^ doc, ElementId^ id ) |
Parameters
- doc
- Type: Autodesk.Revit.DB..::..Document
Revit document.
- id
- Type: Autodesk.Revit.DB..::..ElementId
The element to be checked.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |