ConduitSize Constructor


Constructs an object that stores the basic size information for conduit.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public ConduitSize(
	double nominalDiameter,
	double innerDiameter,
	double outerDiameter,
	double bendRadius,
	bool usedInSizeLists,
	bool usedInSizing
)
Visual Basic
Public Sub New ( _
	nominalDiameter As Double, _
	innerDiameter As Double, _
	outerDiameter As Double, _
	bendRadius As Double, _
	usedInSizeLists As Boolean, _
	usedInSizing As Boolean _
)
Visual C++
public:
ConduitSize(
	double nominalDiameter, 
	double innerDiameter, 
	double outerDiameter, 
	double bendRadius, 
	bool usedInSizeLists, 
	bool usedInSizing
)

Parameters

nominalDiameter
Type: System Double
Nominal diameter. The value should be a valid, positive Revit length.
innerDiameter
Type: System Double
Inner diameter. The value should be a valid, positive Revit length.
outerDiameter
Type: System Double
Outer diameter. The value should be a valid, positive Revit length.
bendRadius
Type: System Double
Minimum bend radius. The value should be a valid, positive Revit length.
usedInSizeLists
Type: System Boolean
Whether it is used in size lists.
usedInSizing
Type: System Boolean
Whether is used in sizing.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentOutOfRangeException The given value for nominalDiameter must be greater than 0 and no more than 30000 feet. -or- The given value for innerDiameter must be greater than 0 and no more than 30000 feet. -or- The given value for outerDiameter must be greater than 0 and no more than 30000 feet. -or- The given value for bendRadius must be greater than 0 and no more than 30000 feet.

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 →