I have an issue (I know it's a bug as per Bentley) where I cannot get the Print Organizer to load the workspace in VBA.
I have also figured out that loading the active design file using $(_dgnfile) is the main part of the issue. If I pull the actual value for $(_dgnfile) and use that in the VBA, the file will attempt to load. This is where my latest issue is.
The PO will show that it is "Checking Out Documents..." and stay hung. I have MS_PRINTORGANIZER_OPEN_DGN_READWRITE=0. I tried 1 based on other forum posts and that went horribly wrong.
Here is the commands I use:
mdl load bentley.microstation.printorganizer.dll printorganizer new printorganizer printerDriver pdf.pltcfg printorganizer add file {Actual File Name} sheet1 printorganizer submitas single printorganizer printdestination C:\temp\1.pdf printorganizer print all printorganizer exit
Any help is greatly appreciated. This has run into dozens of hours for a stupid bug that may/may not be ever fixed.
This is MS version 08.11.09.714
Thanks,
Mike
Please identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation CONNECT or MicroStation V8i. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?
The APIs supplied with MicroStation CONNECT are different to those supplied with MicroStation V8i. Consequently, our answers are likely to be different.
When you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a pencil:
Regards, Jon Summers LA Solutions
Print Organizer V8i does not support variable references in its keyin arguments. They are supported in CONNECT Edition. You will need to resolve any variable references before specifying them as keyin arguments, or avoid them altogether. For example: Dim activeDgnFile As String activeDgnFile = ActiveDesignFile.Path & "\" & ActiveDesignFile.Name CadInputQueue.SendCommand "printorganizer add file " & activeDgnFile End Sub
.