Returns LevelAssociationData associated with this element, if it exists.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2023
Syntax
C# |
---|
public static LevelAssociationData GetLevelAssociationData( Element element ) |
Visual Basic |
---|
Public Shared Function GetLevelAssociationData ( _ element As Element _ ) As LevelAssociationData |
Visual C++ |
---|
public: static LevelAssociationData^ GetLevelAssociationData( Element^ element ) |
Parameters
- element
- Type: Autodesk.Revit.DB..::..Element
The element from which we try to obtain LevelAssociationData.
Remarks
If the input element doesn't have LevelAssociationData than it retuns nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |