SetMajorLayoutAsFixedNumber Method


Sets the major layout pattern as FixedNumber, 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 SetMajorLayoutAsFixedNumber(
	double overallWidth,
	double minorStartOverhang,
	double minorEndOverhang,
	int numberOfWires
)
Visual Basic
Public Sub SetMajorLayoutAsFixedNumber ( _
	overallWidth As Double, _
	minorStartOverhang As Double, _
	minorEndOverhang As Double, _
	numberOfWires As Integer _
)
Visual C++
public:
void SetMajorLayoutAsFixedNumber(
	double overallWidth, 
	double minorStartOverhang, 
	double minorEndOverhang, 
	int numberOfWires
)

Parameters

overallWidth
Type: SystemDouble
The entire width of the wire sheet in the minor direction.
minorStartOverhang
Type: SystemDouble
The distance from the edge of the sheet to the first wire in the minor direction.
minorEndOverhang
Type: SystemDouble
The distance from the last wire to the edge of the sheet in the minor direction.
numberOfWires
Type: SystemInt32
The number of the wires to set in the major direction.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given value for overallWidth is not a number -or- The given value for minorStartOverhang is not a number -or- The given value for minorEndOverhang is not a number -or- numberOfWires must range from 2 to 1000000. -or- The arguments are not consistent, please specify proper input values.
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for overallWidth must be greater than 0 and no more than 30000 feet. -or- The given value for minorStartOverhang must be between 0 and 30000 feet. -or- The given value for minorEndOverhang must be between 0 and 30000 feet.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →