Add a new wire type to project.
Namespace: Autodesk.Revit.DB.ElectricalAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
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: System..::..String
Name of the new wire type.
- materialType
- Type: Autodesk.Revit.DB.Electrical..::..WireMaterialType
Wire material of new wire type.
- temperatureRating
- Type: Autodesk.Revit.DB.Electrical..::..TemperatureRatingType
Temperature rating type information of new wire type.
- insulation
- Type: Autodesk.Revit.DB.Electrical..::..InsulationType
Insulation of new wire type.
- maxSize
- Type: Autodesk.Revit.DB.Electrical..::..WireSize
Max wire size of new wire type.
- neutralMultiplier
- Type: System..::..Double
Neutral multiplier of new wire type.
- neutralRequired
- Type: System..::..Boolean
Specify whether neutral point is required.
- neutralMode
- Type: Autodesk.Revit.DB.Electrical..::..NeutralMode
Specify neutral mode.
- conduit
- Type: Autodesk.Revit.DB.Electrical..::..WireConduitType
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.