I'm trying to recompile some of our MDL programs to V8 (Of which I have Release Candidate 1). In one of the programs we are using the global structure plotStat, which cannot be used in V8. All we need to know is the scale, boundaries, units and size of the currently active plotter. From this we calculate the size of the plot frame, coordinate net etc. that will fit on the paper.
As I have found out by reading plotdesc.fdf and pltrinfo.fdf, an API has been created so that we can retreive some information via function calls instead. It further says that we can use a handle to the plotting data structure by calling:
MSPlotter handle=mdlPlotter_getHandle;
I'm not quite sure I understand where to go from there, to actually retrieving the information I need.
Does anyone have an example of how to get the scale (or any of the other variables I need) of the active plotter?
/Lena
As I have found out by reading plotdesc.fdf and pltrinfo.fdf, an API has been created so that we can retreive some information via function calls instead. It further says that we can use a handle to the plotting data structure by calling:
MSPlotter handle=mdlPlotter_getHandle;
I'm not quite sure I understand where to go from there, to actually retrieving the information I need.
Does anyone have an example of how to get the scale (or any of the other variables I need) of the active plotter?
/Lena