04-02-2008 12:35 PM
04-03-2008 04:25 PM
Chris,
Yes this is possible, but I think there may be an easier way than using Annotations. The PlotMouseMove/Up/Down functions are designed to return the X, Y, Z values of the point nearest to the mouse pointer when the event occurred on the 3D graph. You choose which event is used based on the function. The event will either be a mouse movement, button click, or button release, based on the specified mouse button. You can then set a graph cursor to this location using the X, Y & Z coordinates. Using this graph cursor you can display the coordinates of this point on the graph. There are other ways to display the data depending on your preference.
If you want to use the above method you may want to refer to this thread which mentions some problems that may arise using the PlotMouse events in conjunction with a graph cursors, and how to work around them. If you need a reference for working with cursors you can review the shipping example located at C:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS6\VB\Samples\3DGraph\Cursors. Also the Measurement Studio Help is a great function reference for all of the above.
04-03-2008 04:31 PM
04-04-2008 09:43 AM
Chris,
I am not quite as familiar with version 6.0 specifically, but this should be possible because the CWGraph3D class and its related classes are part of the standard MStudio package. There have been very few changes to the Visual Studio 6.0 support libraries (.ocx files) other than bug fixes between your version and the current. Therefore, these functions are not new and should be included with your software since the graphing functions come with the base package.