plotStat in V8

Status
Not open for further replies.

Lena

Usenet Archive
Joined
Nov 26, 2001
Messages
11
Reaction score
0
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
 
If you don't need them before the plot is executed ...

Configuration variables set by MicroStation after the plot is done

Variable
Description

MS_PLTDATE
Date that last plot file was generated

MS_PLTDELTA
Delta of plot entity during last plot (in working units)

MS_PLTDELTA_UOR
Delta of plot entity during last plot (in UOR's)

MS_PLTDGNDIR
Directory containing the last DGN file plotted

MS_PLTDGNFILE_ABBREV
Last DGN file plotted (shortened version)

MS_PLTDGNFILE_LONG
Last DGN file plotted (full path)

MS_PLTDGNFILE_SHORT
Last DGN file plotted (without path)

MS_PLTDRVFILE_ABBREV
PLT (plot driver file) used during last plot (shortened version)

MS_PLTDRVFILE_LONG
PLT (plot driver file) used during last plot (full path)

MS_PLTDRVFILE_SHORT
PLT (plot driver file) used during last plot (without path)

MS_PLTENTITY
Entity used during last plot. Examples: VIEW2 or FENCE_VIEW3

MS_PLTORIGIN
Origin of plot entity during last plot (in working units)

MS_PLTORIGIN_UOR
Origin of plot entity during last plot (in UOR's)

MS_PLTOUT
Name of last generated plot output file

MS_PLTPENTBL_ABBREV
Pentable used during last plot (shortened version)

MS_PLTPENTBL_LONG
Pentable used during last plot (full path)

MS_PLTPENTBL_SHORT
Pentable used during last plot (without path)

MS_PLTSCALE
Scale used for last plot (as a character string) e.g. 70.0739 m:cm / IN.

MS_PLTSHEETNAME
Name of sheet size used. e.g. ISO A3

MS_PLTSHEETSIZE
Size of sheet printed. e.g. 11x17 (in)

MS_PLTSTATE
Set to "PREVIEW" or "REALPLOT". Used to distinguish a paper plot from a preview (so previews wouldn't be logged to the accounting log).

MS_PLTTIME
Time that last plot file was generated
 
Thanks, but I'm not sure that will help. First of all I would like to get the information before any plot has been executed if that is possible (it was in V7).

The variable MS PLTSHEETSIZE: is that the size of the paper or the size of the print (excluding the margins)? I cannot find any variable giving me the rotation of the plot. I need to know whether the size is 11x7 or 7x11.

/Lena

"Rich Trefz" wrote:
If you don't need them before the plot is executed ...

Configuration variables set by MicroStation after the plot is done

Variable
Description

MS PLTDATE
Date that last plot file was generated

...
 
MS_PLTSHEETSIZE is the page size defined in the .plt file. It's more printable area than paper size. I will change MS_PLTSHEETSIZE so that it reflects the rotation.

You can use
mdlPlotter_getHandle;
to get a handle but the handle really isn't valid until the plot starts.

An mdlapp which is configured as a pre-plot-hook would be able to get the handle and call mdlPlotter_getDouble (handle, PLTRD_SPEC_SCALE).
 
Status
Not open for further replies.

Latest threads

Back
Top