×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Log files from NX journals ?

Log files from NX journals ?

Log files from NX journals ?

(OP)
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

RE: Log files from NX journals ?

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:
http://nxjournaling.com/content/export-drawing-dxf...

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

www.nxjournaling.com

RE: Log files from NX journals ?

(OP)
Thanks!

I will try that .
/ Tomas

RE: Log files from NX journals ?

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?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources