You could use "%UGII_ROOT_DIR%\run_journal.exe" to execute the journal.
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk Testing: NX11.0 EAP, NX12.0 EAP
How to Get the Most from Your Signature in the Community
So with a .BAT file with this estucture will work? But NX must be open.
"Call D:\Program Files\Siemens\NX 9.0\UGII\ run_journal.exe" C:\ Projects\NX journals\ Postmultiplegroups.vb"
An existing NX session does not have to be open. Run_journal.exe launches a new NX session
The following .bat contents works for me:
set NX_JOURNAL="C:\Projects\NX Journals\Postmultiplegroups.vb" %UGII_ROOT_DIR%\run_journal.exe %NX_JOURNAL% -args arg1 arg2 arg3
When running in batch mode, I don't think that you will have access to the NX UI. It is complaining that you are trying to access the UI.
Also, you will probably need to eliminate the references to the FolderBrowserDialog; if you are running in batch mode, you won't want (and probably can't have) this dialog popping up.
You will need to modify the journal a bit more to pass in the files you want to process as arguments:
Sub Main(byval args() as string)
then parse the file names from the 'args' array and process each accordingly. I think this functionality first appeared in NX 8.5 (or maybe 8?)