RemoveWireMaterialType Method


Electrical Setting Remove Wire Material Type Method

Remove the wire material type from project.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void RemoveWireMaterialType(
	WireMaterialType materialType
)

Parameters

materialType WireMaterialType
The wire material type to be removed.
Exceptions
Exception Condition
InvalidOperationException 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
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →