Click or drag to resize
CEMAPiDigitizePolygon Method
Same as iDigitze2_EMAP, but automatically close polygons.

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
This is the same as iDigitize2_EMAP, except that it automatically detects, (except for the 2nd and 3rd points) when a selected location is within the entered number of pixels from the starting point. If yes, the polygon is assumed to be closed, and the operation is the same as the RMB "done" command, and the process returns 0.
Syntax
public int iDigitizePolygon(
	CVV oVV1,
	CVV oVV2,
	CVV oVV3,
	CIMG oIMG4,
	string str5,
	int i6,
	int i7
)

Parameters

oVV1
Type: GeoEngine.Core.GXNetCVV
real X VV
oVV2
Type: GeoEngine.Core.GXNetCVV
real Y VV
oVV3
Type: GeoEngine.Core.GXNetCVV
real Z VV
oIMG4
Type: GeoEngine.Core.GXNetCIMG
IMG for Z value, or IMG_NULL for no Z.
str5
Type: SystemString
Command line prompt string
i6
Type: SystemInt32
0 for no newline 1 for automatic newline at each point
i7
Type: SystemInt32
close the polygon if the selected location is within this radius in screen pixels.

Return Value

Type: Int32
0 if user digitized some points. 1 if user cancelled.
See Also