| Revit 2024 API |
| LabelUtils..::..GetLabelFor Method (DuctLossMethodType, Document) |
| LabelUtils Class See Also |
Gets the user-visible name for a DuctLossMethodType.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
| C# |
|---|
public static string GetLabelFor( DuctLossMethodType ductLossMethodType, Document doc ) |
| Visual Basic |
|---|
Public Shared Function GetLabelFor ( _ ductLossMethodType As DuctLossMethodType, _ doc As Document _ ) As String |
| Visual C++ |
|---|
public: static String^ GetLabelFor( DuctLossMethodType ductLossMethodType, Document^ doc ) |
Parameters
- ductLossMethodType
- Type: Autodesk.Revit.DB.Mechanical..::..DuctLossMethodType
The DuctLossMethodType to get the user-visible name.
- doc
- Type: Autodesk.Revit.DB..::..Document
The document from which to get the DuctLossMethodType.
Remarks
The name is obtained in the current Revit language.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | Thrown when information for the input DuctLossMethodType cannot be found. |