\n AddWireType is deprecated in Revit 2026 and will be removed in a future version of Revit. Please use WireType.Duplicate() instead.\n WireMaterialType object can no longer set to the WireType, use property WireType.WireMaterial instead.\n TemperatureRatingType object can no longer set to the WireType, use property WireType.TemperatureRating instead.\n InsulationType object can no longer set to the WireType, use property WireType.Insulation instead.\n MaxSize object can no longer set to the WireType, use property WireType.MaxSize instead.\n
Add a new wire type to project.
Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
[ObsoleteAttribute("\n AddWireType is deprecated in Revit 2026 and will be removed in a future version of Revit. Please use WireType.Duplicate() instead.\n WireMaterialType object can no longer set to the WireType, use property WireType.WireMaterial instead.\n TemperatureRatingType object can no longer set to the WireType, use property WireType.TemperatureRating instead.\n InsulationType object can no longer set to the WireType, use property WireType.Insulation instead.\n MaxSize object can no longer set to the WireType, use property WireType.MaxSize instead.\n ")] public WireType AddWireType( string name, WireMaterialType materialType, TemperatureRatingType temperatureRating, InsulationType insulation, WireSize maxSize, double neutralMultiplier, bool neutralRequired, NeutralMode neutralMode, WireConduitType conduit )
Parameters
- name String
- Name of the new wire type.
- materialType WireMaterialType
- Wire material of new wire type.
- temperatureRating TemperatureRatingType
- Temperature rating type information of new wire type.
- insulation InsulationType
- Insulation of new wire type.
- maxSize WireSize
- Max wire size of new wire type.
- neutralMultiplier Double
- Neutral multiplier of new wire type.
- neutralRequired Boolean
- Specify whether neutral point is required.
- neutralMode NeutralMode
- Specify neutral mode.
- conduit WireConduitType
- Conduit type of new wire type.
Return Value
WireTypeNew added wire type object.
