Remove an existing temperature rating type from this material type.
Namespace: Autodesk.Revit.DB.ElectricalAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Syntax
| C# |
|---|
public void RemoveTemperatureRatingType( TemperatureRatingType temperatureRating ) |
| Visual Basic |
|---|
Public Sub RemoveTemperatureRatingType ( _ temperatureRating As TemperatureRatingType _ ) |
| Visual C++ |
|---|
public: void RemoveTemperatureRatingType( TemperatureRatingType^ temperatureRating ) |
Parameters
- temperatureRating
- Type: Autodesk.Revit.DB.Electrical..::..TemperatureRatingType
The temperature rating type to be removed.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | The last temperature rating type of project and any one used by a wire type can't be removed. |