Jacques: The GRIDVALUE GX is what you are looking for... The GX Developer API includes the following functions for returning X,Y locations from the current map: (from emap.gxh) // iGetPoint_EMAP Returns the coordinates of a user selected point // iTrackPoint_EMAP Get point without prompt or cursor change with tracking // GetCurtPoint_EMAP Returns the coordinates of the currently selected point in view coordinates // GetCurtPointMM_EMAP Returns the coordinates of the currently selected point in mm on map // GetCursor_EMAP Returns the coordinates of the last known cursor location in view coordinates // GetCursorMM_EMAP Returns the coordinates of the last known cursor location in mm on map. // iGetBox_EMAP Returns the coordinates of a user selected box. // iGetRect_EMAP Returns the coordinates of a user selected box starting at a corner. // iGetLine_EMAP Returns the end points of a line. // iGetPolyLine_EMAP Returns a polyline. Using the values returned from any of these functions, you can use the following image function to determine a particular grid value at a point: (from img.gxh) // rGetZ_IMG Returns the grid value at a point Consult the individual header files for required arguments. Some of the EMAP functions require you to select the correct view first (usually the data view). Stephen Cheesman Research Geophysicist Geosoft > -----Original Message----- > From: Jacques Beaurain [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, December 28, 1999 1:17 AM > To: '[EMAIL PROTECTED]' > Subject: [gxnet]: Selecting an area on a map and returning > corresponding grid value s+coordinates > > Has anyone ever done something similar in a GX or external dll? > > Thanks, > Jacques Beaurain > AATS > Room 908 > Tel: +27 11 6383007 > Cel: 082 322 7530 > > _______________________________________________________ > More mailing list info http://www.geosoft.com/support/listserv/index.html _______________________________________________________ More mailing list info http://www.geosoft.com/support/listserv/index.html
