×
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

NX11 - Journal - Listing Window Can only be written to once in a session?

NX11 - Journal - Listing Window Can only be written to once in a session?

NX11 - Journal - Listing Window Can only be written to once in a session?

(OP)
Hello,

I have a journal which I have written for NX9 which outputs some information to the listing window. I have no problems running it in NX9.

When I run it in NX11, it works fine if I have a new session of NX running, but if I try to run the journal again within the same session, it doesn't actually write anything to the listing window. I checked the Log File from NX and found:

CODE

JavaScript Console Message: SyntaxError: Unexpected EOF
	Line number: 1
	Source id: undefined 
right after the line which shows I ran the journal.

Does NX11 require something else to use the listing window correctly, since it is a more "feature rich" window than the one in NX9 was?

Thanks,
Jeff

RE: NX11 - Journal - Listing Window Can only be written to once in a session?

I wrote a quick journal that writes some text to the info window; I ran it multiple times in NX 11 without any issues. I don't know of anything special that you need to do with the listing window in NX 11 (also note that I'm not using NX 11 for daily work, still on NX 9 here).

www.nxjournaling.com

RE: NX11 - Journal - Listing Window Can only be written to once in a session?

(OP)
Digging through the UGOpen folder on my NX11 installation, I found this which also writes to the "Listing Window":

CODE

Guide.InfoWriteLine("Text") 

It looks like to use the "new" listing window properly there is a different function. However, I cannot find any supporting information on this.

Jeff

RE: NX11 - Journal - Listing Window Can only be written to once in a session?

From the API reference guide:

Quote:


Guide Class
Simple functions used in the "Getting Started with NX Open" guide

Looks like they created a new class so people could more easily follow along with the examples in the "getting started" guide. The .InfoWrite and .InfoWriteLine methods belong to this class. The ListingWindow.WriteLine and .WriteFullLine are not marked as deprecated or obsolete, they should still be fully supported.

www.nxjournaling.com

RE: NX11 - Journal - Listing Window Can only be written to once in a session?

(OP)
Hmm...so I continued on my merry way coding my journal (and keeping the ListingWindow.WriteLine) and now it seems to behave normally. Perhaps I had some phantom something-or-other that was causing it to choke, but all is good now. I even tried to revert to something that I thought was similar to what I had 3 hours ago but I couldn't re-duplicate the error...oh well.

But at least I learned something new (and downloaded the NX11 net_ref.chm for future reference).

Thanks,
Jeff

RE: NX11 - Journal - Listing Window Can only be written to once in a session?

The ListingWindow functions should still work. The Guide functions are just to make the new "Getting Started with NX/Open" document look as nice as the "Getting Started with SNAP" one.

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