RemoveSize Method


Erase the existing ConduitSize with this nominal diameter. The conduit standard name determines the location of the size in the size table.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public void RemoveSize(
	string standardName,
	double nominalDiameter
)
Visual Basic
Public Sub RemoveSize ( _
	standardName As String, _
	nominalDiameter As Double _
)
Visual C++
public:
void RemoveSize(
	String^ standardName, 
	double nominalDiameter
)

Parameters

standardName
Type: System String
The conduit standard name.
nominalDiameter
Type: System Double
Nominal diameter.

Remarks

Does nothing if there is no existing ConduitSize with this nominal diameter.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions ArgumentOutOfRangeException The given value for nominalDiameter must be greater than 0 and no more than 30000 feet.
Autodesk.Revit.Exceptions InvalidOperationException The function is called during iterating the size set.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →