| Layout | 
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
SyntaxThe LayoutRuleMaximumSpacing type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | LayoutRuleMaximumSpacing | Constructor of LayoutRuleMaximumSpacing. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|   | IsReadOnly | Identifies if the object is read-only or modifiable. (Inherited from APIObject) | 
|  | Spacing | Get or set the spacing of the beam system. | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Dispose | Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject) | 
|  | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object) | 
|  | GetType | Gets the Type of the current instance. (Inherited from Object) | 
|  | ToString | Returns a string that represents the current object. (Inherited from Object) | 
 Remarks
Remarks Example
Exampleprivate bool LayoutRuleMaximumSpacingInformation(BeamSystem beamSystem) { //get the layoutRule of the beamsystem Autodesk.Revit.DB.LayoutRule layoutRule = beamSystem.LayoutRule; string message = "BeamSystem layout rule : " + layoutRule; //create a new instance of the LayoutRuleClearSpacing class LayoutRuleMaximumSpacing myLayoutRuleMaximumSpacing = new LayoutRuleMaximumSpacing(10.0); //set the new layoutRule to the beamsystem beamSystem.LayoutRule = myLayoutRuleMaximumSpacing; LayoutRuleMaximumSpacing maximunSpacing = beamSystem.LayoutRule as LayoutRuleMaximumSpacing; if (null == maximunSpacing) { return false; } //try to get the property value of the beamsystem LayoutRule double spacing = maximunSpacing.Spacing; message += "\nNew BeamSystem layout rule: " + maximunSpacing; message += "\nNew BeamSystem maximum spacing: " + spacing; TaskDialog.Show("Revit",message); return true; }
 See Also
See Also