Click or drag to resize
CEMAPiGetGrid Method
Position and size a grid on a map.

Available since Oasis montaj version: 5.0.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
If the input angle is rDUMMY, an extra step is inserted for the user to define the angle by drawing a line with the mouse. The output primary axis angle will always be in the range -90 < angle <= 90. The grid origin is shifted to whichever corner necessary to make this possible, while keeping the secondary axis at 90 degrees greater than the primary ( going counter-clockwise). The coordinates are returned in the current User projection (See GetUserIPJ_MVIEW and SetUserIPJ_MVIEW.)
Syntax
public int iGetGrid(
	string str1,
	int i2,
	int i3,
	ref double d4,
	ref double d5,
	ref double d6,
	ref double d7,
	ref double d8
)

Parameters

str1
Type: SystemString
user prompt string
i2
Type: SystemInt32
Number of elements along primary axis to draw.
i3
Type: SystemInt32
Number of elements along secondary axis to draw.
d4
Type: SystemDouble
Angle of primary axis in degrees
d5
Type: SystemDouble
Grid origin X
d6
Type: SystemDouble
Grid origin Y
d7
Type: SystemDouble
Primary axis length
d8
Type: SystemDouble
Secondary axis length

Return Value

Type: Int32
0 if line returned. 1 if user cancelled.
See Also