Submitted by maayansv on Mon, 03/09/2015 - 03:27
Forums:
Hi,
How to open new NX session using a Journal?
Requirement is to run a journal in batch mode to open NX session, perform some task in the session and close the nx session.
Any help is highly appreciated.
Regards,
Maayan
re: new session
Didn't we already do something similar by using the "run_journal" utility?
http://nxjournaling.com/content/journal-batch-mode-error
yes, but now the requirement
yes, but now the requirement is bit extended.
Now i need to open NX session if not available through journal, perform those activity, save file and close NX session, if it is launched for this procedure.
re: launch NX session
If I understand the situation correctly, I think all you will need is some sort of script to start the "run_jounal" command with the desired parameters. If you are using MS Windows, you could use a batch script, VBScript, Powershell, etc.
Re:
Sorry if my previous post is not understandable.
Criteria : NX session is not started.
there are 2 requirements
1. Start NX application something like
Session.newSession() instead of Session.GetSession() or any other workaround.
2. Exit/close NX application
I wanted to know is there a possibility to perform this activity using journal.
re: criteria
You cannot open a session of NX with only a journal; a journal requires an NX session to compile and run the code. If you have a journal that you want to run, but no NX session; you can use the "run_journal" utility provided as part of NX. The "run_journal" utility can be started by an external program or script file (as mentioned in my previous post).
Alternatively, if you have the NX author license, you can compile the journal code to an .exe file to be run in "batch" mode. When the code is compiled to .exe and directed to run in "batch" mode, it will start a background session of NX (not visible) to work with.
Re:
Thanks much for this valuable information. Appreciate your prompt response.