Results 1 to 2 of 2

Thread: Revit print to pdf automation - unfortunately async

  1. #1
    All AUGI, all the time clog boy's Avatar
    Join Date
    2006-12
    Location
    Probably near a PC.
    Posts
    843
    Login to Give a bone
    0

    Default Revit print to pdf automation - unfortunately async

    So I'm trying to automate PDF printing to different sizes in Revit, and to do that I loop through a dictionary of sheet names and page properties (custom object).
    The problem is that in order to bypass the interface of the PDF printer (pdfforge PDFCreator), I need to address the queue and give each job a different output filename. I think I'm using the right code to do this, but by the time I'm looping through the queue it isn't fully populated yet. So I believe that the actual spooling works in a separate process, on a parallel thread. The same goes for the printer queue ofcourse.

    Fortunately, the queue outputs a bool when all jobs are received (have to set a number of jobs to await).

    Is there a way to halt code execution until that bool is set to True?

    EDIT found a solution... Feel free to delete this topic.
    Last edited by clog boy; 2020-04-30 at 03:20 PM.

  2. #2
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,505
    Login to Give a bone
    0

    Default Re: Revit print to pdf automation - unfortunately async

    Quote Originally Posted by clog boy View Post
    EDIT found a solution... Feel free to delete this topic.
    Please share your solution, so others looking for this topic or have a similar problem can find it.
    Thanks

Similar Threads

  1. View / Sheet automation of a scheduled panel in Revit...
    By kjolly.248684 in forum Revit - API
    Replies: 0
    Last Post: 2011-01-31, 09:54 PM
  2. Revit Automation
    By ckeelor in forum Revit - API
    Replies: 1
    Last Post: 2009-12-19, 02:56 AM
  3. AutoCAD 2007 - DWG to PDF, Mac user unable to Open/Print PDF's
    By john.113502 in forum AutoCAD Plotting
    Replies: 4
    Last Post: 2006-06-06, 01:11 AM
  4. Revit Automation with VBA
    By kon.95959 in forum VBA/COM Interop
    Replies: 2
    Last Post: 2005-09-30, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •