Validates if an element can have a sketch but currently does not.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2023
Syntax
C# |
---|
public bool IsElementWithoutSketch( ElementId elementId ) |
Visual Basic |
---|
Public Function IsElementWithoutSketch ( _ elementId As ElementId _ ) As Boolean |
Visual C++ |
---|
public: bool IsElementWithoutSketch( ElementId^ elementId ) |
Parameters
- elementId
- Type: Autodesk.Revit.DB..::..ElementId
The element id to be checked.
Return Value
True if the element doesn't have a sketch, false otherwise.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |