SendCommand(-EXPORT) does nothing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?