AddWireType Method


Add a new wire type to project.

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

Syntax

C#
public WireType AddWireType(
	string name,
	WireMaterialType materialType,
	TemperatureRatingType temperatureRating,
	InsulationType insulation,
	WireSize maxSize,
	double neutralMultiplier,
	bool neutralRequired,
	NeutralMode neutralMode,
	WireConduitType conduit
)
Visual Basic
Public Function AddWireType ( _
	name As String, _
	materialType As WireMaterialType, _
	temperatureRating As TemperatureRatingType, _
	insulation As InsulationType, _
	maxSize As WireSize, _
	neutralMultiplier As Double, _
	neutralRequired As Boolean, _
	neutralMode As NeutralMode, _
	conduit As WireConduitType _
) As WireType
Visual C++
public:
WireType^ AddWireType(
	String^ name, 
	WireMaterialType^ materialType, 
	TemperatureRatingType^ temperatureRating, 
	InsulationType^ insulation, 
	WireSize^ maxSize, 
	double neutralMultiplier, 
	bool neutralRequired, 
	NeutralMode neutralMode, 
	WireConduitType^ conduit
)

Parameters

name
Type: SystemString
Name of the new wire type.
materialType
Type: Autodesk.Revit.DB.ElectricalWireMaterialType
Wire material of new wire type.
temperatureRating
Type: Autodesk.Revit.DB.ElectricalTemperatureRatingType
Temperature rating type information of new wire type.
insulation
Type: Autodesk.Revit.DB.ElectricalInsulationType
Insulation of new wire type.
maxSize
Type: Autodesk.Revit.DB.ElectricalWireSize
Max wire size of new wire type.
neutralMultiplier
Type: SystemDouble
Neutral multiplier of new wire type.
neutralRequired
Type: SystemBoolean
Specify whether neutral point is required.
neutralMode
Type: Autodesk.Revit.DB.ElectricalNeutralMode
Specify neutral mode.
conduit
Type: Autodesk.Revit.DB.ElectricalWireConduitType
Conduit type of new wire type.

Return Value

New added wire type object.

Remarks

Parameter of temperatureRating should be retrieved from parameter of materialType, and parameters such as insulation and maxSize should be retrieved from temperatureRating. otherwise, this add operation is most likely to fail.

See Also