Trap the Publish Command

Discussion in 'AutoCAD' started by Pat Bjork, Jan 20, 2005.

  1. Pat Bjork

    Pat Bjork Guest

    Hi all,

    I have written a routine that will capture the end of the Plot command and
    bring up a dialog box for the user to fill out. This program then sends
    information to accounting to bill the materials. I am trying to add the
    ability to capture the Publish command. I can get the BeginCommand of
    Publish but would prefer the EndCommand. Since Publish is done in the
    background it does not trigger the EndCommand event. Does anyone know how to
    get a program to run after the Publish command? I would be happy if it runs
    after the Publish dialog box has been dismissed. Thanks in advance.

    Pat Bjork
     
    Pat Bjork, Jan 20, 2005
    #1
  2. Publish automates plotting, so for every "page" the publish command
    processes, a plot command will run. Simply determine the number of pages,
    set a global counter and increment it every time a plot ends. When the
    counter equals the number of pages, the publish command is done.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jan 20, 2005
    #2
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.