Printing drawings without opening

Discussion in 'AutoCAD' started by mgrigoriev, Mar 4, 2005.

  1. mgrigoriev

    mgrigoriev Guest

    Hi,
    Is there a way to plot a drawing without opening? I was trying ObjectDBX, but it I get a message that it doesn't support ploting. Any help will be greatly appreciated.
    Thanks,
    Mike
     
    mgrigoriev, Mar 4, 2005
    #1
  2. mgrigoriev

    Joe Sutphin Guest

    Fastlook can do it. AutoVue does it. I believe they both have an API.
     
    Joe Sutphin, Mar 4, 2005
    #2
  3. mgrigoriev

    mgrigoriev Guest

    Sorry, but I don't understand what you are talking about. I want to write something in VB that helps me plot files without opening them.

    Here's the code that I came up with, but which errors : "Object doesn't support this entity or method"

    Sub PlotDWG()
    Dim dbxDoc As Object 'AxDbDocument
    Set dbxDoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument")
    dbxDoc.Open "C:\Temp\SD.dwg"
    dbxDoc.Plot.PlotToDevice
    Set dbxDoc = Nothing
    End Sub
     
    mgrigoriev, Mar 4, 2005
    #3
  4. mgrigoriev

    Jeff Mishler Guest

    In order to print you MUST have some application that recognizes the file
    format that OPENS the file and prints it from that application. Be it ODBX
    (which you've found cannot plot), Autocad, Autoview or Fastlook as Joe
    suggested, Word or whatever.

    What is the purpose of plotting without opening?
    If it's to save time, could you make the Acad session invisible to the user
    and open in that session? I believe that a drawing will open faster in that
    state.
     
    Jeff Mishler, Mar 4, 2005
    #4
  5. mgrigoriev

    Matt W Guest

    Interesting idea.
    How would you make AutoCAD "invisible" to the user??

    Would you use something like this:
    Shell "e:\temp\drawing.dwg", vbMinimizedNoFocus
     
    Matt W, Mar 8, 2005
    #5
  6. mgrigoriev

    fantum Guest

    You should probably use CreateObject followed by a call to the Open method of the returned object. If you feel that you need to keep the Shell then you might try this (corrected for your install path) for giggles:

    Shell """c:\Program Files\AutoCAD 2005\acad.exe"" ""e:\temp\drawing.dwg"" /Automation"
     
    fantum, Mar 8, 2005
    #6
  7. mgrigoriev

    Matt W Guest

    Yeah... I would probably use CreateObject, but the point I was trying to get
    across was the "vbMinimizedNoFocus" to make AutoCAD "invisible" to the user.
    Not sure if that's the best way to go about doing it or not.
     
    Matt W, Mar 8, 2005
    #7
  8. If your using VB you can use
    acadapp.Visible = False
     
    Paul Richardson, Mar 10, 2005
    #8
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.