SetMinorLayoutAsMaximumSpacing Method


Sets the major layout pattern as MaximumSpacing, while specifying the needed parameters for this pattern.

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

Syntax

C#
public void SetMinorLayoutAsMaximumSpacing(
	double overallLength,
	double majorStartOverhang,
	double majorEndOverhang,
	double spacing
)
Visual Basic
Public Sub SetMinorLayoutAsMaximumSpacing ( _
	overallLength As Double, _
	majorStartOverhang As Double, _
	majorEndOverhang As Double, _
	spacing As Double _
)
Visual C++
public:
void SetMinorLayoutAsMaximumSpacing(
	double overallLength, 
	double majorStartOverhang, 
	double majorEndOverhang, 
	double spacing
)

Parameters

overallLength
Type: SystemDouble
The entire length of the wire sheet in the major direction.
majorStartOverhang
Type: SystemDouble
The distance from the edge of the sheet to the first wire in the major direction.
majorEndOverhang
Type: SystemDouble
The distance from the last wire to the edge of the sheet in the major direction.
spacing
Type: SystemDouble
The distance between the wires in the minor direction.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given value for overallLength is not a number -or- The given value for majorStartOverhang is not a number -or- The given value for majorEndOverhang is not a number -or- The given value for spacing is not a number -or- The arguments are not consistent, please specify proper input values.
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for overallLength must be greater than 0 and no more than 30000 feet. -or- The given value for majorStartOverhang must be between 0 and 30000 feet. -or- The given value for majorEndOverhang must be between 0 and 30000 feet. -or- The given value for spacing must be greater than 0 and no more than 30000 feet.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →