4. System Classes : FrameExec Class : GridX Attribute
 
Share this page                  
GridX Attribute
Data Type: integer
4GL Access: RW
The GridX attribute specifies the grid setting for the x-direction, in 1000ths of an inch. When the user moves or resizes any field that has a bias setting of FB_MOVEABLE, FB_RESIZEABLE, or FB_FLEXIBLE, and the grid is in effect, the field automatically snaps to multiples of the grid setting.
OpenROAD enforces the GridX attribute in conjunction with the GridY and IsGridOn attributes. You must set both the GridX and the GridY attributes. In addition, you must set the IsGridOn attribute to TRUE to turn the grid on. If the IsGridOn attribute is set to FALSE, the values of GridX and GridY are irrelevant.
When you are working in Workbench, OpenROAD automatically sets this attribute (and the GridY attribute) to a default value of 250 thousandths of an inch (.25) when you select the Snap to Grid operation.
If you create a frame in 4GL, the default is zero.
For more information about using the grid feature, see the Workbench User Guide.