Display full version of the post: get papersize from plt file

elibenari
25.08.2010, 18:11
In Cadforum someone asked How to get paper size from a .PLT file.The answer that he got was:In most HPGL/2 PLT files you can retreive the paper size from the PS instruction or from the SET PAPERLENGTH and SET PAPERWIDTH PJL instructions.The HPGL units are in 1/40 of mm.In many .plt files the resulting Plt drawings had different paper size.Can anyone instruct me how to calculate?


Vladimir Michl
25.08.2010, 18:22
There are more ways to specify the size - it depends on the settings of the driver which has generated the PLT file.
 
One of quite reliable ways is the HP Instant Printing Utility (IPU) - see Download. If you need to find this parametr in your own script/macro, you would need to parse the HPGL/2 binary file.

elibenari
29.08.2010, 19:46
We
need to be able to calculate the papersize of a plot made from a plt file.

Till
now we did it with the knowledge that in most HPGL/2 PLT files we can retreive the
paper size from the values of PAPERLENGTH and PAPERWIDTH inside the binary file
where the HPGL units are in 1/40 of mm.

 

We got some cases now where our calculation is erroneous.

 

Does anybody know how to
improve our calculation based on the binary plt file?

Is
there anything else in the plt file that has to be considered?

thanksEli