Get the layer name associated with an element from the default layer mapping table.
Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2022
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- pElement
- Type: Autodesk.Revit.DBElement
The element.
- categoryId
- Type: Autodesk.Revit.DBElementId
The category id of the element.
Return Value
The layer name.Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |