Well I could of course use standard commands for the FILEDIA oart, but you
HAVE to use lisp for the PUBLISH command. Try using a \ (Backslash) in the
command and you'll know what i mean.
Second.. I've tried using Sendcommand etc. for the Publish-part, but it
fatal errors then too. The Publish command doesn't have an API so I have to
use sendcommand. And the REASON I use the Publish command is that it is the
only way to make a MulitPage DWF via VBA.
Third.. As I wrote.. "Jadda" does NOTHING. the code is:
Public Sub Jadda()
End Sub
The problem is: IF I run a VBA macro (even if the macro doesn't do anything)
right before executing the publishcommand, Autocad crashes. If I run the VBA
macro on one button, and run the publishcommand on another button,
everything is just fine.
Trond Hasse Lie
"Mike Tuersley" wrote in message
news:MPG.19dd27363c43e26498977a@discussion.autodesk.com...
> Well, first off why are you setting variables thru lisp in a button?
> Buttons are for macros - why make things hard? Just use ^C^C-
> vbarun;jadda;setvar;useri1;(getvar"filedia");filedia;0;-
> publish;"....dsd";filedia;(getvar"useri1");
>
> Second, why not include all of this in your vba program to begin with?
>
> Third, what does jadda do? It could be causing an problem with the
> publish command.
> ___________________________
> Mike Tuersley
> AutoCAD Clinic
> Rand IMAGINiT Technologies