Jobname in HPGL - Plotfiles

Pierre de la Verre

Usenet Archive
Joined
Jul 10, 2003
Messages
14
Reaction score
0
(not a specific autocad question, but important too fpr cad-users...)

Hello,

I have to manage a lot of plotfiles, written with many different plotter- drivers.

The result is that some plotfiles includes the jobname (which is shown on the display of the plotter), other plotfiles don't have a jobname and the display on the plotter shows only "....".

Is it possible to edit the files and add a jobname ?

Best regards

Pierre

Examples:

File 1 (without name):
%-12345X@PJL SET MEDIASOURCE = ROLL1
E%0BBPINPS16840,11920ECRO90IP0,0,1016,-1016IR0,100SC0,300,0,300 ..............

File 2 (without name):
%-1BBP;IN;DF;LA1,4,2,6;FT1;PS34799,24582;IP0,0,34799,24582;SC0,1,0,1,2;NP127;PC1,0,0,0;PC2, ..............

File 3: (with name)
%1BBP5,1,1," #1/Drawing"INWU0NP256QL51PS11880,16801RO180SC;

File 4 (without name):
BPINPS34647,24681;ECNP256PALA1,4,2,4TR0PE<=¿¿<¿¿;PC0,255,57,57PE:¿<=MLÌE_Á;PM0PE^ÆvÅ

File 5 (wih name):
E%-12345X@PJL ENTER LANGUAGE=HP-GL/2
%0BBP5,1,1,"myplot";IN;TR0;MT0;QL-1;PS68136,12
 
Yes, you can edit the files with any binary editor or program (binary mode) and append the missing information for the jobname.

regards

Markus

Pierre de la Verre said:
(not a specific autocad question, but important too fpr cad-users...)

Hello,

I have to manage a lot of plotfiles, written with many different plotter- drivers.

The result is that some plotfiles includes the jobname (which is shown on
the display of the plotter), other plotfiles don't have a
jobname and the display on the plotter shows only "....".

Is it possible to edit the files and add a jobname ?

Best regards

Pierre

Examples:

File 1 (without name):
%-12345X@PJL SET MEDIASOURCE = ROLL1
E%0BBPINPS16840,11920ECRO90IP0,0,1016,-1016IR0,100SC0,300,0,300 ...............

File 2 (without name):
%-1BBP;IN;DF;LA1,4,2,6;FT1;PS34799,24582;IP0,0,34799,24582;SC0,1,0,1,2;NP12 7;PC1,0,0,0;PC2, ..............
 
Thanks Markus,

but how I have to do it? Which commands or code, which place in the file ? .....

Pierre
 
Use your example, the command for adding the jobename is BBP5,1,1,"jobname" (this command is plotter specific)

I.e. in the 2nd example you can add after the "BBP" the missing parameter and test it.

The difference between the 1st example and the 2nd example is, that they do not use record delimiters ";".

Use a binary editor (testing purpose) or write a little VB or C-Program to modify the files. In AutoCAD with a litte ARX-Program you can get the plotfilename and add it to the plotfile ...

regards

Markus
 

Latest threads

Back
Top