AddVoltageType Method


Add a new type definition of voltage into project.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public VoltageType AddVoltageType(
	string name,
	double actualValue,
	double minValue,
	double maxValue
)
Visual Basic
Public Function AddVoltageType ( _
	name As String, _
	actualValue As Double, _
	minValue As Double, _
	maxValue As Double _
) As VoltageType
Visual C++
public:
VoltageType^ AddVoltageType(
	String^ name, 
	double actualValue, 
	double minValue, 
	double maxValue
)

Parameters

name
Type: System String
Specify voltage type name
actualValue
Type: System Double
Specify actual value of voltage type.
minValue
Type: System Double
Specify acceptable minimum value of the voltage type.
maxValue
Type: System Double
Specify acceptable maximum value of the voltage type.

Return Value

New added voltage type object.

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 →