Skip to content

RebarContainerItem

Public Class

Provides implementation for Rebar stored in RebarContainer.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.Structure.RebarContainerItem

Namespace: Autodesk.Revit.DB.Structure

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class RebarContainerItem : IDisposable

The RebarContainerItem type exposes the following members.

Properties

Name

Description


Public Property

Identifies the distribution path length of rebar set.


Public Property

Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal.


Public Property

The identifier of the rebar bar type.


Public Property
BaseFinishingTurns

For a spiral, the number of finishing turns at the lower end of the spiral.


Public Property
Height

For a spiral, the overall height.


Public Property

Identifies if the first bar in rebar set is shown.


Public Property

Identifies if the last bar in rebar set is shown.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

The index of this item in its associated RebarContainer.


Public Property

Identifies the layout rule of rebar set.


Public Property

Identifies the maximum spacing between rebar in rebar set.


Public Property
MultiplanarDepth

For a multiplanar rebar, the depth of the instance.


Public Property

A unit-length vector normal to the plane of the rebar


Public Property
NumberOfBarPositions

The number of potential bars in the set.


Public Property
Pitch

For a spiral, the pitch, or vertical distance traveled in one rotation.


Public Property
Quantity

Identifies the number of bars in rebar set.


Public Property
RebarShapeId

The RebarShape element that defines the shape of the rebar.


Public Property
TopFinishingTurns

For a spiral, the number of finishing turns at the upper end of the spiral.


Public Property

The length of an individual bar multiplied by Quantity.


Public Property

The volume of an individual bar multiplied by Quantity.


Methods

Name

Description


Public Method

Checks if a presentation mode can be applied for this rebar in the given view.


Public Method
CanUseHookType

Checks if the specified RebarHookType id is of a valid RebarHookType for the Rebar’s RebarBarType


Public Method

Sets the presentation mode for this rebar set to the default (either for a single view, or for all views).


Public Method
ComputeDrivingCurves

Compute the driving curves.


Public Method

Releases all resources used by the RebarContainerItem


Public Method
DoesBarExistAtPosition

Checks whether a bar exists at the specified position.


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method
FindMatchingPredefinedPresentationMode

Determines if there is a matching RebarPresentationMode for the current set of selected hidden and unhidden bars assigned to the given view.


Public Method
GetBarPositionTransform

Return a transform representing the relative position of any individual bar in the set.


Public Method
GetBendData

Gets the RebarBendData, containing bar and hook information, of the instance.


Public Method
GetCenterlineCurves(Boolean, Boolean, Boolean)

A chain of curves representing the centerline of the rebar.


Public Method
GetCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption)

A chain of curves representing the centerline of the rebar.


Public Method

The distribution path of a rebar set.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

Returns the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal.


Public Method

Get the id of the RebarHookType to be applied to the rebar.


Public Method

Gets the presentaion mode for this rebar set when displayed in the given view.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method
HasPresentationOverrides

Identifies if this rebar set has overridden default presentation settings for the given view.


Public Method

Identifies if a given bar in this rebar set is hidden in this view.


Public Method

Identifies if this rebar set is shown as a cross-section in the given view.


Public Method
SetBarHiddenStatus

Sets the bar in this rebar set to be hidden or unhidden in the given view.


Public Method

Set an instance of a RebarContainerItem element according to the parameters list.


Public Method

Set an instance of a RebarContainerItem element according to the parameters list. The instance will have the default shape parameters from the RebarShape. If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to true, then both the curves and hooks must match the RebarShape definition. Otherwise, the hooks can be different than the defaults specified in the RebarShape


Public Method

Set an instance of a RebarContainerItem element according to a Rebar parameters. Will throw exception if given rebar is not shape driven. Will throw exception if given rebar has moved bars in set.


Public Method

Set an instance of a RebarContainerItem element, as an instance of a RebarShape. The instance will have the default shape parameters from the RebarShape, and its location is based on the bounding box of the shape in the shape definition. Hooks are removed from the shape before computing its bounding box. If appropriate hooks can be found in the document, they will be assigned arbitrarily.


Public Method
SetHookOrientation

Defines the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal.


Public Method

Set the id of the RebarHookType to be applied to the rebar.


Public Method
SetLayoutAsFixedNumber

Sets the Layout Rule property of rebar set to FixedNumber.


Public Method
SetLayoutAsMaximumSpacing

Sets the Layout Rule property of rebar set to MaximumSpacing


Public Method
SetLayoutAsMinimumClearSpacing

Sets the Layout Rule property of rebar set to MinimumClearSpacing


Public Method
SetLayoutAsNumberWithSpacing

Sets the Layout Rule property of rebar set to NumberWithSpacing


Public Method
SetLayoutAsSingle

Sets the Layout Rule property of rebar set to Single.


Public Method

Sets the presentation mode for this rebar set when displayed in the given view.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)