Sets the major layout pattern as MaximumSpacing, while specifying the needed parameters for this pattern.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2013
Syntax
C# |
---|
public void SetMajorLayoutAsMaximumSpacing(
double overallWidth,
double minorStartOverhang,
double minorEndOverhang,
double spacing
) |
Visual Basic |
---|
Public Sub SetMajorLayoutAsMaximumSpacing ( _
overallWidth As Double, _
minorStartOverhang As Double, _
minorEndOverhang As Double, _
spacing As Double _
) |
Visual C++ |
---|
public:
void SetMajorLayoutAsMaximumSpacing(
double overallWidth,
double minorStartOverhang,
double minorEndOverhang,
double spacing
) |
Parameters
- overallWidth
- Type: System..::..Double
The entire width of the wire sheet in the minor direction.
- minorStartOverhang
- Type: System..::..Double
The distance from the edge of the sheet to the first wire in the minor direction.
- minorEndOverhang
- Type: System..::..Double
The distance from the last wire to the edge of the sheet in the minor direction.
- spacing
- Type: System..::..Double
The distance between the wires in the major direction.
Exceptions
Exception | Condition |
---|
Autodesk.Revit.Exceptions..::..ArgumentException |
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-
The given value for spacing is not a number
-or-
The arguments are not consistent, please specify proper input values.
|
Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException |
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.
-or-
The given value for spacing must be greater than 0 and no more than 30000 feet.
|
Autodesk.Revit.Exceptions..::..DisabledDisciplineException |
None of the following disciplines is enabled: Structural.
|
See Also