AddSize Method


Inserts a new ConduitSize in to the conduit size settings. The conduit standard name determines the location of the new 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 AddSize(
	string standardName,
	ConduitSize sizeInfo
)
Visual Basic
Public Sub AddSize ( _
	standardName As String, _
	sizeInfo As ConduitSize _
)
Visual C++
public:
void AddSize(
	String^ standardName, 
	ConduitSize^ sizeInfo
)

Parameters

standardName
Type: SystemString
The conduit standard name.
sizeInfo
Type: Autodesk.Revit.DB.ElectricalConduitSize
The new ConduitSize to be added.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The conduit standard name does not exist. -or- The conduit size already exists.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException The function is called during iterating the size set.

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 →