M

ElectricalSetting.AddWireType

Description:
Add a new wire type to project.
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.
[ObsoleteAttribute("
                  AddWireType is deprecated in Revit 2026 and will be removed in a future version of Revit. Please use WireType.Duplicate() instead.
                  WireMaterialType object can no longer set to the WireType, use property WireType.WireMaterial instead.
                  TemperatureRatingType object can no longer set to the WireType, use property WireType.TemperatureRating instead.
                  InsulationType object can no longer set to the WireType, use property WireType.Insulation instead.
                  MaxSize object can no longer set to the WireType, use property WireType.MaxSize instead.
               ")]
public WireType AddWireType(
	string name,
	WireMaterialType materialType,
	TemperatureRatingType temperatureRating,
	InsulationType insulation,
	WireSize maxSize,
	double neutralMultiplier,
	bool neutralRequired,
	NeutralMode neutralMode,
	WireConduitType conduit
)
  • String
    name
    Name of the new wire type.
  • materialType
    Wire material of new wire type.
  • temperatureRating
    Temperature rating type information of new wire type.
  • insulation
    Insulation of new wire type.
  • maxSize
    Max wire size of new wire type.
  • Double
    neutralMultiplier
    Neutral multiplier of new wire type.
  • Boolean
    neutralRequired
    Specify whether neutral point is required.
  • neutralMode
    Specify neutral mode.
  • conduit
    Conduit type of new wire type.
Return Value WireType New added wire type object.