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: 24.0.0.0 (24.0.0.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: SystemString
The conduit standard name.
nominalDiameter
Type: SystemDouble
Nominal diameter.

Remarks

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for nominalDiameter must be greater than 0 and no more than 30000 feet.
Autodesk.Revit.ExceptionsInvalidOperationException 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 →