RebarShapeDrivenAccessor.SetLayoutAsMaximumSpacing
Sets the Layout Rule property of rebar set to MaximumSpacing
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetLayoutAsMaximumSpacing( double spacing, double arrayLength, bool barsOnNormalSide, bool includeFirstBar, bool includeLastBar)Parameters
spacingDouble
The maximum spacing between rebar in rebar set
arrayLengthDouble
The distribution length of 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 spacing isn’t bigger than 0.0. -or- the set length arrayLength isn’t acceptable.
InapplicableDataException
This RebarShapeDrivenAccessor is an instance of a spiral or multiplanar shape.
InvalidOperationException
This RebarShapeDrivenAccessor doesn’t contain a valid rebar reference.
Remarks
When changing the layout rule to MaximumSpacing, you must also simultaneously set Spacing, SetLength, BarsOnNormalSide, IncludeFirstBar, and IncludeLastBar properties.