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 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 →