HPGL question

J

John M

Hi,

Is there a way to specify a user-defined HPGL coordinate system where
the origin (0,0) of the HPGL coordinate system is the (arbitrary) position
of the pen when
changing from PCL mode to HPGL mode?

Example:

[ESC sequence 1]
[ESC sequence 2]
[ESC sequence 3]
This is a test.
Lets say that the position of
the pen is (100,80) after this
text has been printed out.
[Enter HPGL mode]
[Set origin (0,0) of HPGL coordinate system to (100,80)]
[PA10,10]
[EA2500,1500]


In this example, a rectangle is specified by its lower left corner
at 10,10 and upper right corner at 2500,1500 which in the
PCL coordinate system would correspond to:

Lower left corner in PCL coordinates = (100+10,80+10)
Upper right corner in PCL coordinates = (100+2500,80+1500)





Thank you.
 
T

thoss

Hi,

Is there a way to specify a user-defined HPGL coordinate system where
the origin (0,0) of the HPGL coordinate system is the (arbitrary) position
of the pen when
changing from PCL mode to HPGL mode?
You can do it manually: press ENTER simultaneously with P1 or P2.
Automatically, I think you would have to use the output of OA (output
pen position and status) as the input for IP (input P1 and P2). You can
then use IW to define the plotting window and SC to define the scale.

But can't you do what you want by plotting relative rather than
absolute?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top