Share

BarTypeDiameterOptions Class

This class stores the diameter information from the RebarBarType.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.BarTypeDiameterOptions


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

Syntax

C#

public class BarTypeDiameterOptions : IDisposable

The BarTypeDiameterOptions type exposes the following members.

Constructors

 NameDescription
Public methodBarTypeDiameterOptions() Constructs a new BarTypeDiameterOptions with default settings.
Public methodBarTypeDiameterOptions(RebarBarType) Constructs a new BarTypeDiameterOptions copying the diameter information from the bar type.

Properties

 NameDescription
Public propertyBarModelDiameter Represents the bar model diameter of the RebarBarType.
Public propertyBarNominalDiameter Represents the bar nominal diameter of the RebarBarType.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyStandardBendDiameter Represents the standard bar bend diameter of the RebarBarType.
Public propertyStandardHookBendDiameter Represents the standard hook bend diameter of the RebarBarType.
Public propertyStirrupTieBendDiameter Represents the stirrup/tie bar and hook bend diameter of the RebarBarType.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the BarTypeDiameterOptions
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Remarks

This class can be used to create a whole new set of diameter values for a RebarBarType. It can be used when copying the diameter information as a bulk of data from a RebarBarType to another. The new diameters can be set in the RebarBarType in the following way: 1. Create a BarTypeDiameterOptions object with the new diameters. 2. Set the new diameters in RebarBarType using [!:Autodesk::Revit::DB::Structure::RebarBarType::SetBarTypeDiameters(Autodesk::Revit::DB::BarTypeDiameterOptions ^diametersOpt)]. The method [!:Autodesk::Revit::DB::Structure::RebarBarType::SetBarTypeDiameters(Autodesk::Revit::DB::BarTypeDiameterOptions ^diametersOpt)] is responsible for diameters validation.

See Also

Reference

Was this information helpful?