Acad2004 GPF Running -PUBLISH command using COM API

Discussion in 'AutoCAD' started by tojonas, Jan 16, 2005.

  1. tojonas

    tojonas Guest

    Hi,

    I'm trying to run the -publish command using the COM Automation API like this:

    ' VB6 code

    Private Sub Command1_Click()
    Dim acad As AutoCAD.AcadApplication
    Set acad = CreateObject("AutoCAD.Application.16")
    acad.Visible = True
    Call acad.ActiveDocument.SendCommand("-PUBLISH C:\temp\in\test.dsd" & vbCr)
    MsgBox "Booom"
    Exit Sub

    Autocad always GPF on this (if I enter the command manually in the opened window everything is OK)

    Attached is my test.dsd file (I'm only using the sample dwf files)

    Does anyone know what's going on here? I have seen the error message "Error handler re-entered" at one point...

    Thanks in advance
    /Jonas Nilsson
     
    tojonas, Jan 16, 2005
    #1
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.