Cancel
Showing results for 
Search instead for 
Did you mean: 

Console window inside NX

Creator
Creator

Hello all,

 

I remember someone showed a new feature inside NX (not Teamcenter) to show a console window where we can see the output sent to STDOUT from custom code.

 

Does somebody remember how to enable it in NX11 or NX12?

 

I opened a GTAC ticket but they sent me instructions to do this in Teamcenter, which is a different story.

 

Thank you

 

8 REPLIES 8

Re: Console window inside NX

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Note you can write to the "information" window.

You can also write to the NX log file (syslog)

Not exactly the console window, but (to me) reasonably close.

 

Listing window example (VB)

Dim theSession As Session = Session.GetSession()
Dim lw As ListingWindow = theSession.ListingWindow
lw.Open()
lw.WriteLine("Your Text here")

 

 

Syslog example (C/C++)

UF_print_syslog("Your text here", FALSE);

 

The listing window is visible as you run the program.

The syslog is "permanent" (e.g. if the NX session crashes)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: Console window inside NX

Creator
Creator

 

Finally I found how to enable it.

 

set DISPLAY_CONSOLE=1

 

console.jpg

 

Now, it's time to explore its capabilities Smiley Happy

Re: Console window inside NX

Creator
Creator

Thank you Ken, very helpful...

Re: Console window inside NX

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

To write to the NX syslog in .NET, you use:

theSession.LogFile.Write("my custom message")

Hope this helps.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX12.0.2, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX (1876) | AWC 3.4 Preparing: -

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: Console window inside NX

Legend
Legend

@ddiaz wrote:

 


set DISPLAY_CONSOLE=1

 

 




It's work for NX11 NX12 only? What about NX10?

Re: Console window inside NX

Creator
Creator
This is not for NX10.

Re: Console window inside NX

Creator
Creator

Can you please tell me where to find console window

Highlighted

Re: Console window inside NX

Siemens Phenom Siemens Phenom
Siemens Phenom

In NX1202, in Measure dialog, there is option "Send Results to NX Console". When you measure something when this toggle ON after click OK or Apply, Console navigator will be added.

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!