RemoveSize Method


Remove the existing MEPSize with this nominal diameter from the segment.

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

Syntax

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

Parameters

nominalDiameter
Type: SystemDouble
The nominal diameter of the size.

Remarks

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsDisabledDisciplineException None of the following disciplines is enabled: Mechanical Electrical Piping.
Autodesk.Revit.ExceptionsInvalidOperationException The last size of the segment cannot be removed.

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 →