Using Batch file to run recorded journal

Hi,

I'm using NX7.5. I have recorded a simple modelling journal using NX7.5. I would like know how to allow VB to run the journal.

I have try to run the journal file using Start--> UGS NX7.5--> NX Tools--> Command Prompt and there is no issue on it.

How can I write the source code in the VB so that it can run the same thing? How to run batch file and to run the journal?

Thanks.
Nelson

There is a utility that comes with NX called "run_journal.exe" that will run your journal in "batch mode". This utility will open an NX process and run your journal, there will be no GUI for the user. Your journal code may need to be modified slightly to work in batch mode. You can find an example here:
http://nxjournaling.com/content/journal-batch-mode-error

If you have an author license for NXOpen, you can connect to and control an NX session with "remoting". This website is dedicated to what can be done in journaling without an author license, so remoting is beyond our scope. But NX ships with an example, look in: {NX install folder}\UGOPEN\SampleNXOpenApplications\.NET\RemotingExample. Also, you will find several threads about remoting at the GTAC community site:
https://community.plm.automation.siemens.com/t5/NX-Programming-Customiza...

Hi, I face a problem here. If I were to execute the command prompt from start menu under NX Tools, then type in {run_journal.exe {file_path}}, the execution is successful.
Then, I actually created a GUI and wanted to link the button click function to run journal, how can I actually do that? I'm using shell command.
Shell("cmd.exe /k 'C:\Program Files\UGS\NX 7.5\UGII\run_journal.exe' 'D:\123.vb'")
Using this command shows me "The filename, directory name, or volume label syntax is incorrect."

What are you using for your GUI? If it is a .net language, I'd suggest using the Process.Start method to kick off the run_journal program.

I actually working as design engineer. I created a GUI using visual basic which meant for user to customize design parameter then would like to generate the part file using the method of running journal.

Below is my code from visual studio,

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim batchFilePath As String = "C:\Program Files\UGS\NX 7.5\UGII\ugiicmd.bat"

Dim objProcess As System.Diagnostics.Process
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = batchFilePath
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess.Start()

Is the coding right? It seems that the command prompt flash out then close.