Jobname in HPGL - Plotfiles

Discussion in 'AutoCAD' started by Pierre de la Verre, Jul 16, 2003.

  1. (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
     
    Pierre de la Verre, Jul 16, 2003
    #1
  2. Pierre de la Verre

    Markus Latz Guest

    Yes, you can edit the files with any binary editor or program (binary mode)
    and append the missing information for the jobname.

    regards

    Markus

    the display of the plotter), other plotfiles don't have a
    %-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, ..............
     
    Markus Latz, Jul 16, 2003
    #2
  3. Thanks Markus,

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

    Pierre
     
    Pierre de la Verre, Jul 16, 2003
    #3
  4. Pierre de la Verre

    Dan Allen Guest

    Dan Allen, Jul 16, 2003
    #4
  5. Pierre de la Verre

    Markus Latz Guest

    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
     
    Markus Latz, Jul 16, 2003
    #5
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 (here). After that, you can post your question and our members will help you out.