cancel
Showing results for 
Search instead for 
Did you mean: 

Export text from the Operation's information window

Valued Contributor
Valued Contributor

Hey everyone,

 

I'm looking for way to be able to reach to the text of the operation's information window.

I want to export specific sections from it. Is it possible?

 

Best regards,

Tom.

3 REPLIES

Re: Export text from the Operation's information window

Esteemed Contributor
Esteemed Contributor

Check the ListingWindow methods for those related to file actions.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Export text from the Operation's information window

Genius
Genius

Hello Tom!

 

You can pipe the information window to an external file using something like that (e.g. in C#):

1) Session curSession = Session.GetSession();
2) ListingWindow curLw = curSession.ListingWindow;
3) String curPath = @"C:\myFile.txt";
4) curLw.SelectDevice(ListingWindow.DeviceType.File, curPath);
5) curLw.Information.DisplayObjectsDetails(someObjects);
6) curLw.SelectDevice(ListingWindow.DeviceType.Window,"");

  This is a simple example for an output pipe:

Line 1-3: Some definition stuff

Line 4: Now, the output of the ListingWindow will go to a specific file (myFile.txt)

Line 5: Make some output in the ListingWindow

Line 6: This will cause the output of the ListingWindow to be on the screen again instead of using the file

 

Now you can use regular expressions, etc. to handle the *.txt file.

 

Hope that helps,

 

Bye,

 

Flo

Re: Export text from the Operation's information window

Valued Contributor
Valued Contributor
Thank you so much!