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

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 →