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.
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)
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
To write to the NX syslog in .NET, you use:
theSession.LogFile.Write("my custom message")
Hope this helps.
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
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
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.