SpacingRule
A rule for specifying a set of equidistant, parallel gridlines within a region.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.SpacingRule
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class SpacingRule : APIObject
The SpacingRule type exposes the following members.
Properties
Name
Description
Public Property
BeltMeasurement
On a curved surface, BeltMeasurement specifies where the grid’s distances are measured.
Public Property
Distance
The exact distance between layout lines.
Public Property
GridlinesRotation
An additional rotation to be applied to this set of grid lines.
Public Property
HasBeltMeasurement
True if the gridlines are not parallel due to surface curvature, and the BeltMeasurement property therefore applies.
Public Property
Code Example
IsReadOnly
Identifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public Property
Justification
The justification of the lines within the region.
Public Property
Layout
A choice of several gridline layout rules.
Public Property
Number
The exact number of lines in the region.
Public Property
Offset
An additional offset applied to the first gridline.
Methods
Name
Description
Public Method
Dispose
Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
SetLayoutFixedDistance
Set the Layout property to FixedDistance.
Public Method
SetLayoutFixedNumber
Set the Layout property to FixedNumber.
Public Method
SetLayoutMaximumSpacing
Set the Layout property to MaximumSpacing.
Public Method
SetLayoutMinimumSpacing
Set the Layout property to MinimumSpacing.
Public Method
SetLayoutNone
Set the Layout property to None.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)