RemoveWireMaterialType Method


Remove the wire material type from project.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public void RemoveWireMaterialType(
	WireMaterialType materialType
)
Visual Basic
Public Sub RemoveWireMaterialType ( _
	materialType As WireMaterialType _
)
Visual C++
public:
void RemoveWireMaterialType(
	WireMaterialType^ materialType
)

Parameters

materialType
Type: Autodesk.Revit.DB.ElectricalWireMaterialType
The wire material type to be removed.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException Wire material type can be removed only if it is not currently assigned to any wire type, and the last one wire material type can't be removed, otherwise an exception will be thrown.

See Also