interface grid modify

Allows you to modify an existing grid in the view.
A new grid can be created independent of the default grid, which can be located or oriented as per the preference. The grid oriGIn can be conveniently located at any location other than the global oriGIn.
The grid size, mesh, appearance and snapping ability can be modified by this command.

Format:

 
interface grid modify
grid_name =
an existing grid
new_grid_name =
a new grid
location =
location
orientation =
orientation
snapping_enabled =
boolean
view_normal =
boolean
extent =
length
spacing =
length
maximum_radius =
length
circle_spacing =
length
radial_increments =
integer
triad_visible =
boolean
lines_visible =
boolean
line_weight =
integer
line_style =
line_style
line_color =
an existing color
dots_visible =
boolean
dot_size =
integer
dot_color =
an existing color
axes_visible =
boolean
axis_weight =
integer
axis_color =
an existing color

Example:

 
interface grid modify &
grid_name =
.model_1.grd &
new_grid_name =
.model_1.grd2 &
location =
.model_1 &
orientation =
.model_1 &
snapping_enabled =
yes &
view_normal =
yes &
extent =
1000,1000 &
spacing =
100,100 &
triad_visible =
yes &
lines_visible =
yes &
line_weight =
2 &
line_style =
solid &
line_color =
.colors.RED &
dots_visible =
yes &
dot_size =
3 &
dot_color =
.colors.BLUE &
axes_visible =
yes &
axis_weight =
3 &
axis_color =
.colors.GREEN

Description:

 
Parameter
Value Type
Description
grid_name
An Existing Grid
Specifies the name of an existing grid
new_grid_name
A New Grid
Specifies a new name for an existing grid
location
Location
Specifies the location of the grid oriGIn
orientation
Orientation
Specifies the orientation of the grid
snapping_enabled
Boolean
Specifies the ability to snap to grid points
view_normal
Boolean
Keeps the grid always normal to the viewer irrespective of actual orientation
extent
Length
Specifies the extent of the grid in two axial directions in model units
spacing
Length
Specifies the spacing of the grid points
maximum_radius
Length
Specifies the maximum radius of the polar grid
circle_spacing
Length
Specifies the circular spacing of the polar grid
radial_increments
Integer
Specifies the radial increments in case of polar grid
triad_visible
Boolean
Specifies the visibility of triad
lines_visible
Boolean
Specifies the visibility of grid lines
line_weight
Integer
Specifies the line weight
line_style
Line_style
Specifies the line style for the grid line
line_color
An Existing Color
Specifies the grid line color
dots_visible
Boolean
Specifies the visibility of the grid dots
dot_size
Integer
Specifies the size of the grid dots
dot_color
An Existing Color
Specifies the grid dot color
axes_visible
Boolean
Specifies the visibility of the axes
axis_weight
Integer
Specifies the axes line weight
axis_color
An Existing Color
Specifies the axis line color

Extended Definition:

1. The new working grid can be defined with the name ‘grid_name’. The location can be at global oriGIn or any other location which can be entered as coordinates of ‘picked-up’ from the view window. Either you can keep the Global OriGIn, that is, 0,0,0, to set the center location of the grid to the center of the view window or pick or click a location on the screen to set as the center of the working grid.
The ‘new_grid_name’ replaces the name of the existing grid.
2. By orientation, select how you want to orient the grid. You can set its orientation by picking points or by aligning it with the screen plane. Note that if you select Pick for orientation, you will also set the location of the working grid. This orients the grid axes to the global axes.
3. By enabling the ‘snapping’, you can snap a closest grid point with the cursor. When you drag an item with the mouse to move or resize it, the mouse position will snap to the nearest grid point.
4. The parameter ‘view normal’ always orients the grid normal to the viewer irrespective of the actual orientation of the grid. Thus, if the grid is oriented at angle, as you change the orientation of the object view, the grid realigns itself normal to the viewer. But if the parameter is not enabled, then the grid will remain oriented in space as per the specified orientation.
5. The extents specifies the length of the grid in x,y directions in the model length units. The spacing specifies the distance between the grid points in x and y directions in models length units.
6. Maximum radius specifies the radius of the outermost grid circle from the grid oriGIn and circle_spacing specifies amount of space between each circle in the working grid. The smaller the spacing, the more circles Adams View defines.
For radial increments, enter the number of lines radiating from the origin of the working grid. Adams View spaces the lines equally around the working grid. The lines do not include the axes. The number of lines (N) determines the angle increment between lines (q), as shown in the formula:
= 360×/N
7. You can hide the new grid triad or display it by the parameter ‘triad_visible’. The visibility of lines and axes on the grid can be switched ON or OFF by the parameter ‘lines_visible’ and ‘axes_visible’. The line and axes weight can be set by using the ‘line_weight’ and ‘axes_weight’ parameters. The value range for this weight is 1 to 5. The color of the lines and axes is set by using the ‘axes_color’ and ‘line_color’ parameter. The line style can be chosen form various line style options like solid, dash and so on.
8. The dot properties like size, color and visibility are set by using the parameters ‘dot_size’, ‘dot_color’ and ‘dot_visible’ parameter. The dot_size range is from 1 to 3 screen pixel.

Cautions:

The grid settings should not exceed the maximum number of points as specified by the environment variable 'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.