2024 Class
Changes 8
C

RebarShapeDrivenAccessor

Description:
A class that is used to access the properties and capabilities of shape-driven Rebar.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor
public class RebarShapeDrivenAccessor : IDisposable
Name Return Type Description
M ComputeDrivingCurves() IList<Curve> Compute the driving curves.
M Dispose() None Releases all resources used by the
M FlipRebarSet() None Flips the rebar set by changing the RebarPlane with the OutOfPlaneExtent and vice versa.
M GetBarPositionTransform(Int32) Transform Return a transform representing the relative position of any individual bar in the set.
M GetDistributionPath() Line The distribution path of a rebar set.
M ScaleToBoxFor3D(XYZ, XYZ, XYZ, Double) None 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.
M ScaleToBox(XYZ, XYZ, XYZ) None 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.
M SetLayoutAsFixedNumber(Int32, Double, Boolean, Boolean, Boolean) None Sets the Layout Rule property of rebar set to FixedNumber.
M SetLayoutAsMaximumSpacing(Double, Double, Boolean, Boolean, Boolean) None Sets the Layout Rule property of rebar set to MaximumSpacing
M SetLayoutAsMinimumClearSpacing(Double, Double, Boolean, Boolean, Boolean) None Sets the Layout Rule property of rebar set to MinimumClearSpacing
M SetLayoutAsNumberWithSpacing(Int32, Double, Boolean, Boolean, Boolean) None Sets the Layout Rule property of rebar set to NumberWithSpacing
M SetLayoutAsSingle() None Sets the Layout Rule property of rebar set to Single.
M SetRebarShapeId(ElementId) None 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
Name Return Type Description
P ArrayLength double Identifies the distribution path length of rebar set.
P BarsOnNormalSide bool Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal.
P BaseFinishingTurns int For a spiral, the number of finishing turns at the lower end of the spiral.
P Height double For a spiral, the overall height.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P MultiplanarDepth double For a multiplanar rebar, the depth of the instance.
P Normal XYZ A unit-length vector normal to the plane of the rebar
P Pitch double For a spiral, the pitch, or vertical distance traveled in one rotation.
P TopFinishingTurns int For a spiral, the number of finishing turns at the upper end of the spiral.