Print Organizer keyins - how to choose view to print?

Hi,

I am a newbie to print organizer and I am trying to set up a job that prints 3 dgn files into one PDF file in VBA.

Therefore I have studied the Microstation help file and copied parts of the examples in there - here is my code:

    CadInputQueue.SendKeyin "mdl load bentley.microstation.printorganizer.dll"
    CadInputQueue.SendKeyin "PRINTORGANIZER NEW"
    CadInputQueue.SendKeyin "PRINTORGANIZER PRINTERDRIVER pdf.pltcfg"
    CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE ""\\datacenter\des\cad\EG.dgn"""
    CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE ""\\datacenter\des\cad\OG.dgn"""
    CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE ""\\datacenter\des\cad\UG.dgn"""
    CadInputQueue.SendKeyin "PRINTORGANIZER SUBMITAS SINGLE"
    CadInputQueue.SendKeyin "PRINTORGANIZER PRINTDESTINATION C:\123.pdf"
    CadInputQueue.SendKeyin "PRINTORGANIZER PRINT ALL"
    CadInputQueue.SendKeyin "PRINTORGANIZER EXIT"

It works fine so far with one problem:

I don't know how to tell print organizer to print view 1 instead of view 3. Currently it automatically prints view 3 ...

Does anyone have a clue for me?

Parents
  • Unknown said:
    I don't know how to tell print organizer to print view 1 instead of view 3

    The MicroStation help documentation doesn't make it easy to solve your puzzle.  The nearest I can find is this extract from Area, Layout, and Resymbolization Properties:

    Specifying Area Properties

    The Area controls on the Main tab let you specify properties such as print area, view group, and view. You can also specify whether or not you want to enable the Print to 3D or Rasterized options.

    Print Area, View Group, and View


    When Print Organizer creates a Fixed print definition or prints a Variable print definition, the initial print area is determined as follows:

    • If the active model contains a sheet definition and the Fence creation method is set to None, the print area is obtained from the sheet definition.

    • If the active model contains a sheet definition and one of the Fence creation methods is set, the fence defines the print area.

    • If no sheet definition exists and the Fence creation method is set to None, the print area is set to view.

    • If no sheet definition exists and one of the Fence creation methods is set, the print area is set to fence.

    .. more ...

     
    Regards, Jon Summers
    LA Solutions

  • Thanks a lot Jon - this seems to be a hard one for me ...

    Where can I find more information around print area? Is there a kind of help file available?

  • The key-in you're looking for is 'printorganizer applyprintstyle'.  That can be used in conjunction with a print style you define in a dgnlib that sets the print definition properties according to your standards.  That can include the view number.

          
    .

  • Unknown said:

    The key-in you're looking for is 'printorganizer applyprintstyle'.  That can be used in conjunction with a print style you define in a dgnlib that sets the print definition properties according to your standards.  That can include the view number.

    Thanks for that clarification.  I've updated our article about using VBA to control Print Organizer.

     
    Regards, Jon Summers
    LA Solutions

Reply Children
  • One suggestion: the syntax for the ADDFILE key-in is:

    PRINTORGANIZER ADD FILE <filename> [<printstyle_name>]

    So instead of adding a number of designs to the print set, then applying the same print style to all of the resulting print definitions afterwards, simply specify the print style at the time the print definitions are created.  That will improve performance, especially if the print style requires the design file to be loaded in the background process in order to search for fence boundary elements.

          
    .