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# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
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.