DLL/NX Journal from Batch commands
DLL/NX Journal from Batch commands
(OP)
Hi all! I need to launch a DLL that i wrote from batch.
I found something on multiple forums and on nxjournaling.com, but not quite the information that i need. I have a few questions:
The best thing would be to launch a DLL (simuling the CTRL+U command within NX) that could interact with a part already open in NX. Also a journal file would be sufficient. I saw that there is the run_journal.exe line to launch a journal file, but I can't manage to interact with an existing session of NX (with an open part). Is it possible? Does it exist something similar to launch directly a DLL?
Thanks a lot
Francesco
I found something on multiple forums and on nxjournaling.com, but not quite the information that i need. I have a few questions:
The best thing would be to launch a DLL (simuling the CTRL+U command within NX) that could interact with a part already open in NX. Also a journal file would be sufficient. I saw that there is the run_journal.exe line to launch a journal file, but I can't manage to interact with an existing session of NX (with an open part). Is it possible? Does it exist something similar to launch directly a DLL?
Thanks a lot
Francesco





RE: DLL/NX Journal from Batch commands
If you want to work on a part open in the session, the session should start the program.
Generally, a program run in batch starts its own process and has no UI access.
The only way I can imagine a program communicating with an already open NX session is to use ugs_router.
Mark Rief
NX CAM Customer Success
Siemens PLM Software
RE: DLL/NX Journal from Batch commands
I'll try to explain everything better with an example. I'd like to open a part (let's say that contains a cylinder) and, leaving the same first session open, launch a series of journals/dll interacting with the cylinder. For example, I could have one journal that evaluate the volume of the cylinder, and another one that modify its dimensions. Then i could like to know again the volume once that the second DLL is finished, and so launch the first dll again and so on.
In other words: is there a way to interact by batch commands with an open session of NX (the one containing the cylinder in this example) such that a third party software (e.g. Matlab) could control the whole process via batch, launching the DLLs/journal files following an algorithm?
p.s. you could ask me why you don't create the control algorithm in NXopen, but I have lots of tools (especially optimization tools) already built and ready in Matlab, so i'd like to let Matlab control everything.
Thanks
RE: DLL/NX Journal from Batch commands
www.nxjournaling.com
RE: DLL/NX Journal from Batch commands
RE: DLL/NX Journal from Batch commands
www.nxjournaling.com
RE: DLL/NX Journal from Batch commands
I don't know much about programming, so maybe I am wrong or I missed something.
Thanks again anyway.