| 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.GXNetAssembly: 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
)
Public Function iGetGrid (
str1 As String,
i2 As Integer,
i3 As Integer,
ByRef d4 As Double,
ByRef d5 As Double,
ByRef d6 As Double,
ByRef d7 As Double,
ByRef d8 As Double
) As Integer
public:
int iGetGrid(
String^ str1,
int i2,
int i3,
double% d4,
double% d5,
double% d6,
double% d7,
double% d8
)
member iGetGrid :
str1 : string *
i2 : int *
i3 : int *
d4 : float byref *
d5 : float byref *
d6 : float byref *
d7 : float byref *
d8 : float byref -> int
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