RemoveSize Method


Erase the existing MEPSize with this nominal diameter. The duct shape determines the location of the size in the size table.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2013

Syntax

C#
public void RemoveSize(
	DuctShape shape,
	double nominalDiameter
)
Visual Basic
Public Sub RemoveSize ( _
	shape As DuctShape, _
	nominalDiameter As Double _
)
Visual C++
public:
void RemoveSize(
	DuctShape shape, 
	double nominalDiameter
)

Parameters

shape
Type: Autodesk.Revit.DB.MechanicalDuctShape
The shape of duct.
nominalDiameter
Type: SystemDouble
Nominal diameter.

Remarks

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.ExceptionsInvalidOperationException Throws if 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 →