Sets the name for the DirectShape element.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2015
Syntax
| C# |
|---|
public void SetName( string name ) |
| Visual Basic |
|---|
Public Sub SetName ( _ name As String _ ) |
| Visual C++ |
|---|
public: void SetName( String^ name ) |
Parameters
- name
- Type: System..::..String
The name.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |