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!

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

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
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
 
Replies continue below

Recommended for you

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
 
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
 
From the API reference guide:

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
 
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
 
The [tt]ListingWindow[/tt] functions should still work. The [tt]Guide[/tt] functions are just to make the new "Getting Started with NX/Open" document look as nice as the "Getting Started with SNAP" one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor