Click or drag to resize
CEMAPiGetLineXYZ Method
Returns the end points of a line in X,Y and Z

Available since Oasis montaj version: 5.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.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
The coordinates are returned in the current User projection (See GetUserIPJ_MVIEW and SetUserIPJ_MVIEW.) This is useful for digitizing a line in an oriented view and getting the true coordinates in (X, Y, Z) at the selected point on the view plane.
Syntax
public int iGetLineXYZ(
	string str_val,
	ref double min_x,
	ref double min_y,
	ref double min_z,
	ref double max_x,
	ref double max_y,
	ref double max_z
)

Parameters

str_val
Type: SystemString
User prompt string
min_x
Type: SystemDouble
X1 in view user units
min_y
Type: SystemDouble
Y1
min_z
Type: SystemDouble
Z1
max_x
Type: SystemDouble
X2
max_y
Type: SystemDouble
Y2
max_z
Type: SystemDouble
Z2

Return Value

Type: Int32
0 if line returned. 1 - Right Mouse 2 - Escape/Cancel
See Also