Results 1 to 10 of 10

Thread: command line printing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2006-09
    Posts
    1
    Login to Give a bone
    0

    Default command line printing

    I know its possible to run DWG Trueview from a command line and select a drawing to view. But can I take it a step further and tell Trueview to open and print the drawing rather than view it. Are there switches or variables I can enter to select everything I need to be able to print, without viewing the drawing? My customers want to be able to print multiple job order information in an accounting system, and along with the jobs info, print the drawings attached to those jobs, in batch mode (not one at a time). I basically want to pass the drawing and printer name to trueview, and print the drawing. The less interaction the customer has with trueview, the better. Any help will be appreciated. Scott

  2. #2
    I could stop if I wanted to Ogre's Avatar
    Join Date
    2005-06
    Location
    In the end, Cauliflower is just albino Broccoli
    Posts
    288
    Login to Give a bone
    0

    Default Re: command line printing

    This would have to be a job for the .Net API...I know there is no LISP interaction and I did not see any VBA...I am not all that familiar with the DWG True View API...This has to be programmed and not just entered at the command line...Check the .Net Programming forum and ask there...They may be able to help you...

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Question Re: command line printing

    Hi

    Have you looked at implementing Page Setups and using the Publish command within DWG Trueview...

    Have a good one, Mike

  4. #4
    Member
    Join Date
    2008-08
    Posts
    38
    Login to Give a bone
    0

    Default Re: command line printing

    I have been looking at how I can use DWG True View 2009 to do the batch plotting in my drawing office. Just as with AutoCAD if you start Dwg TrueView 2009 using a DOS batch file with the line:

    call "C:\Program Files\Dwg TrueView 2009\dwgviewr.exe" "test.dwg" /b "plota4_model.scr"

    with the switch /b added as shown above and then specify a script file which contains the typical responses to AutoCAD's _PLOT command (notice I used "_Plot", not "-plot") then you can get the program to open a drawing then plot it.

    That's where I am up to so far. Now how do I get a heap of drawings to open up in Dwg TrueView one at a time and plot them out? Note that you have to have the right page setup with default plotter and plot style saved otherwise the script will stop. It would also be nice if the script worked out whether the drawing was in paperspace or modelspace so that it would use the correct responses.

    Robert Smeallie
    Australia

  5. #5
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: command line printing

    Quote Originally Posted by robert_smeallie View Post
    Now how do I get a heap of drawings to open up in Dwg TrueView one at a time and plot them out?
    Use the ._PUBLISH command.
    R.K. McSwain | CAD Panacea |

  6. #6
    Member
    Join Date
    2008-08
    Posts
    38
    Login to Give a bone
    0

    Default Re: command line printing

    I looked at the Publish feature - you need to have the correct plotter named in the Page Setup for each drawing for it to send plots to the printer, otherwise you have to open up each drawing and change the settings which defeats the whole purpose of batch plotting. Unfortunately the guys in this office all use different printers/plotters depending on who and where they are, so there's no guarantee that the printer that I want to use for the batch plot will be the one specified in the drawing's Page Setup.

    I've been looking at using a VB application to mimic what AutoCAD does to plot a drawing. That is, asks you for the drawings you want to plot, the Page Size and Orientation, what to plot (Extents, Layout, Window, etc) and what plotter to use. Based on your answers, it creates a script file which you can then use to open each drawing one by one and send the _Plot command to DWG TrueView to plot it as per my previous comment. Has anyone else gone down this path yet?

    Robert Smeallie

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: command line printing

    Quote Originally Posted by robert_smeallie View Post
    I looked at the Publish feature - you need to have the correct plotter named in the Page Setup for each drawing for it to send plots to the printer, otherwise you have to open up each drawing and change the settings
    No you don't. You can import a named page setup to some or all sheets inside the ._Publish command.
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. 2013: Text within line (symbol line), opaque background not printing
    By tace86152814 in forum Revit Architecture - Families
    Replies: 4
    Last Post: 2013-09-17, 05:33 AM
  2. Replies: 6
    Last Post: 2007-04-23, 01:40 AM
  3. Replies: 4
    Last Post: 2006-05-09, 08:57 PM
  4. setting for command line word wrap (esp. DIST command)
    By lcamara in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2005-02-23, 08:47 AM

Posting Permissions

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