SendCommand(-EXPORT) does nothing

SendCommand(-EXPORT) does nothing

Anonymous
Not applicable
1,212 Views
1 Reply
Message 1 of 2

SendCommand(-EXPORT) does nothing

Anonymous
Not applicable

I've looked around and found a few other people that have this issue but I haven't found a solution yet. I have been trying to get a VBA program to create a multi-sheet pdf of the layouts in the drawing but I can't get anything to work. Right now I am trying to use the SendCommand function to send the following series of commands:

 

"FILEDIA 0"
"-EXPORT"
"Pdf"
"All"
"PDF_DRAWING.pdf"

 

When I put these into the command line manually it exports the pdf correctly. When I run these commands using SendCommand I can see the commands being entered and the options being set correctly but nothing happens after the filename is entered.

 

I have also tried using autopublish to publish a multi-sheet pdf when the drawing is closed but it doesn't create the pdf when being closed from the VBA code. Is there something in place that restricts pdfs from being created from a VBA program?

0 Likes
1,213 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
In the same line of thinking I have tried the following methods and they also don't work:

SendCommand("AUTOPUBLISH " + vbCr)
-Works from command line but does nothing from VBA program

Autopublish on close or save and then close or save the drawing from VBA code.
-Correctly publishes if I manually close or save but doese nothing if closing or saving from VBA code.