CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedget papersize from plt file

 Post Reply Post Reply
Author
elibenari View Drop Down
Newbie
Newbie


Joined: 25.Aug.2010
Location: Israel
Using: gstarcad
Status: Offline
Points: 3
Direct Link To This Post Topic: get papersize from plt file
    Posted: 25.Aug.2010 at 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?
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 25.Aug.2010 at 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.
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
elibenari View Drop Down
Newbie
Newbie


Joined: 25.Aug.2010
Location: Israel
Using: gstarcad
Status: Offline
Points: 3
Direct Link To This Post Posted: 29.Aug.2010 at 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?

thanks

Eli 

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,227 seconds.