Sets the major layout pattern as NumberWithSpacing, while specifying the needed parameters for this pattern.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void SetMajorLayoutAsNumberWithSpacing(
double overallWidth,
double minorStartOverhang,
int numberOfWires,
double spacing
)
Parameters
- overallWidth Double
-
The entire width of the wire sheet in the minor direction.
- minorStartOverhang Double
-
The distance from the edge of the sheet to the first wire in the minor direction.
- numberOfWires Int32
-
The number of the wires to set in the major direction.
- spacing Double
-
The distance between the wires in the major direction.
Exceptions
| Exception | Condition |
|---|
| ArgumentException |
The given value for overallWidth is not a number
-or-
The given value for minorStartOverhang is not a number
-or-
numberOfWires must range from 2 to 1000000.
-or-
The given value for spacing is not a number
-or-
The arguments are not consistent, please specify proper input values.
|
| 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 spacing must be greater than 0 and no more than 30000 feet.
|
See Also
Reference