RebarShapeDrivenAccessor Class

A class that is used to access the properties and capabilities of shape-driven Rebar.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.StructureRebarShapeDrivenAccessor

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RebarShapeDrivenAccessor : IDisposable

The RebarShapeDrivenAccessor type exposes the following members.

Properties
 NameDescription
Public propertyArrayLength Identifies the distribution path length of rebar set.
Public propertyBarsOnNormalSide Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal.
Public propertyBaseFinishingTurns For a spiral, the number of finishing turns at the lower end of the spiral.
Public propertyHeight For a spiral, the overall height.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyMultiplanarDepth For a multiplanar rebar, the depth of the instance.
Public propertyNormal A unit-length vector normal to the plane of the rebar
Public propertyPitch For a spiral, the pitch, or vertical distance traveled in one rotation.
Public propertyTopFinishingTurns For a spiral, the number of finishing turns at the upper end of the spiral.
Public propertyUseRebarConstraintsToProduceVaryingBars Identifies if the rebar constraints should be used to compute each bar in set (which can produce varying length bars).
Top
Methods
 NameDescription
Public methodComputeDrivingCurves Compute the driving curves.
Public methodDisposeReleases all resources used by the RebarShapeDrivenAccessor
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFlipRebarSet Flips the rebar set by changing the RebarPlane with the OutOfPlaneExtent and vice versa.
Public methodGetBarPositionTransform Return a transform representing the relative position of any individual bar in the set.
Public methodGetDistributionPath The distribution path of a rebar set.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodScaleToBox Move and resize the bar to fit within a specified box. The arguments are interpreted as an arbitrary rectangle in 3D with vertices: origin, origin+xVec, origin+xVec+yVec, origin+yVec. The algorithm then proceeds as follows. First the bar is given the default values of the shape parameters from the shape definition. Then, if it is possible to do so without violating the shape definition, the parameter values are scaled so that the width and height of the shape (including bar thickness) match the lengths of xVec and yVec. If there is no way to do this within the shape definition due to overconstraining, a compromise is attempted, such as scaling the whole shape until either the width or the height is correct. Finally the shape is rotated to match the coordinate system of the box. The algorithm is the same one used in one-click placement.
Public methodScaleToBoxFor3D Move and resize a spiral or multiplanar instance to fit within a specified box. The arguments are interpreted as an arbitrary rectangle in 3D with vertices: origin, origin+xVec, origin+xVec+yVec, origin+yVec. One end of the rebar shape is inscribed in this rectangle following the procedure described for the ScaleToBox method. The other end is placed in the parallel plane at distance (center-to-center) given by the height argument, in the direction of (xVec x yVec). Note that spiral shapes interpret the input arguments using a different convention than multiplanar shapes. For spiral shapes, the spiral start will be placed in the rectangle defined by origin, xVec, yVec, and the end of the spiral will be placed in the parallel plane. For multiplanar shapes, the rebar is placed with its primary shape definition located in the parallel plane defined by the height argument, and its connector segments extending in the direction opposite (xVec x yVec). This method replaces ScaleToBoxForSpiral() from prior releases.
Public methodSetLayoutAsFixedNumber Sets the Layout Rule property of rebar set to FixedNumber.
Public methodSetLayoutAsMaximumSpacing Sets the Layout Rule property of rebar set to MaximumSpacing
Public methodSetLayoutAsMinimumClearSpacing Sets the Layout Rule property of rebar set to MinimumClearSpacing
Public methodSetLayoutAsNumberWithSpacing Sets the Layout Rule property of rebar set to NumberWithSpacing
Public methodSetLayoutAsSingle Sets the Layout Rule property of rebar set to Single.
Public methodSetRebarShapeId Changes the RebarShape element that defines the shape of the rebar. Changing the value of this member causes the Rebar instance to choose values for its shape parameters to preserve its previous shape as closely as possible
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Obtain an instance of this class from GetShapeDrivenAccessor. The accessor includes a reference to the Rebar element. If the referenced Rebar element is deleted, using the methods form this class will throw exception.
See Also