RebarContainerItem.SetLayoutAsNumberWithSpacing
Sets the Layout Rule property of rebar set to NumberWithSpacing
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetLayoutAsNumberWithSpacing( int numberOfBarPositions, double spacing, bool barsOnNormalSide, bool includeFirstBar, bool includeLastBar)Parameters
numberOfBarPositionsInt32
The number of bar positions in rebar set
spacingDouble
The maximum spacing between rebar in rebar set
barsOnNormalSideBoolean
Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal
includeFirstBarBoolean
Identifies if the first bar in rebar set is shown
includeLastBarBoolean
Identifies if the last bar in rebar set is shown
Exceptions
Exception
Condition
ArgumentOutOfRangeException
the number of bar positions numberOfBarPositions is less than 1 or more than 1002. -or- The spacing isn’t bigger than 0.0.
InapplicableDataException
This RebarContainerItem is an instance of a spiral or multiplanar shape.
Remarks
When changing the layout rule to NumberWithSpacing, you must also simultaneously set NumberOfBarPositions, Spacing, BarsOnNormalSide, IncludeFirstBar, and IncludeLastBar properties.