SetLayoutAsMaximumSpacing Method


Sets the Layout Rule property of rebar set to MaximumSpacing

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2018

Syntax

C#
public void SetLayoutAsMaximumSpacing(
	double spacing,
	double arrayLength,
	bool barsOnNormalSide,
	bool includeFirstBar,
	bool includeLastBar
)
Visual Basic
Public Sub SetLayoutAsMaximumSpacing ( _
	spacing As Double, _
	arrayLength As Double, _
	barsOnNormalSide As Boolean, _
	includeFirstBar As Boolean, _
	includeLastBar As Boolean _
)
Visual C++
public:
void SetLayoutAsMaximumSpacing(
	double spacing, 
	double arrayLength, 
	bool barsOnNormalSide, 
	bool includeFirstBar, 
	bool includeLastBar
)

Parameters

spacing
Type: SystemDouble
The maximum spacing between rebar in rebar set
arrayLength
Type: SystemDouble
The distribution length of rebar set
barsOnNormalSide
Type: SystemBoolean
Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal
includeFirstBar
Type: SystemBoolean
Identifies if the first bar in rebar set is shown
includeLastBar
Type: SystemBoolean
Identifies if the last bar in rebar set is shown

Remarks

When changing the layout rule to MaximumSpacing, you must also simultaneously set Spacing, SetLength, BarsOnNormalSide, IncludeFirstBar, and IncludeLastBar properties.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The spacing isn't bigger than 0.0. -or- the set length arrayLength isn't acceptable.
Autodesk.Revit.ExceptionsInapplicableDataException This RebarShapeDrivenAccessor is an instance of a spiral or multiplanar shape.
Autodesk.Revit.ExceptionsInvalidOperationException This RebarShapeDrivenAccessor doesn't contain a valid rebar reference.

See Also