Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log files from NX journals ?

Status
Not open for further replies.

Toost

Mechanical
Jan 18, 2011
2,963
I am running a journal created by a colleague who has left the company.
The Journal replaces drawing borders. On some drawings the journal will crash due to it selecting something "illegal".

The NX logfile shows nothing of what the Journal does.
is there a way to get a logfile ?


Regards,
Tomas
 
Replies continue below

Recommended for you

A journal can write to the NX logfile, but NX does not automatically log what happens during execution. You can add some code to the journal to make it write to the log file and document what is going on.

Code:
'create a reference to the log file
Dim lg As LogFile = theSession.LogFile

'write something to the log file
lg.WriteLine("Toost's journal")

The following journal writes much of what it is doing to the NX log file:

look for the "lg.WriteLine" calls and compare them to what you see in the NX log file after execution.

www.nxjournaling.com
 
Thanks!

I will try that .
/ Tomas
 
Hej Toost,

Yes adding logging/console output is the classic way of debugging programs. But you do not get a error line number and stack trace when the journal fails to execute?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor