×
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

Pop-up dialog box /tcl/NX8

Pop-up dialog box /tcl/NX8

Pop-up dialog box /tcl/NX8

(OP)
Hi I was wondering if anyone ever used pop up dialog box for the user to select a file to open in post processor (tcl)? I need to save the path and the name of the file too. I’m using NX8 and I tried tk_getOpenFile command but doesn’t seems to work in NX8. If anyone has different solution or a working example with tk_getOpenFile that would be a great help.

RE: Pop-up dialog box /tcl/NX8

You want to link postprocessing into documentation, aren't You?
I had a journal, what reads the template_post.dat, and make a list from its rows.
There was a combobox, what is a free widget for tcl/tk, where the user can select the needed post from the above list.
After the selection, it is easy to cycle thru the nc_programs, and write them with the selected post.
Do You use postprocessor, or shopdoc?
I think it is easier to define the selectable posts in the template_post.dat

----
kukelyk

RE: Pop-up dialog box /tcl/NX8

(OP)
I’m familiar with the use of template_post.dat. What i want is a bit different! While i use the post processor (when it’s running) i want to communicate with the user. So for my post processor i need information from the model (what i can get from the mom constants like tool path time etc.) and i also need information from the user what has already stored in a file (for example in a txt file). But i also want to let the user to store that file where ever he wants. That is why i need a process to get the path and the name of the (txt) file.

RE: Pop-up dialog box /tcl/NX8

I tried 'tk_getOpenFile' in ugwish (NX 8.0\MACH\auxiliary\ugwish.exe), and it worked.

CODE

global filename
set filename [tk_getOpenFile]
puts $filename 
note that it is only a file selection, You are to read the file for its content

----
kukelyk

RE: Pop-up dialog box /tcl/NX8

"information from the model"
i think it is better to store all data in the manufacturing file, You can store text data in program/operation attribute, or in user defined events etc.

----
kukelyk

RE: Pop-up dialog box /tcl/NX8

(OP)
Every time when I’m running tk_getopenfile (when I tried your commands too) I got this message:
"Error: invalid command name "tk_getOpenFile" while executing"
Do i need anykind of extra library or plugin?

RE: Pop-up dialog box /tcl/NX8

Did You tried it in ugwish?
I do not remember if any other resource is needed. I think OOTB NX should be enough..

----
kukelyk

RE: Pop-up dialog box /tcl/NX8

(OP)
UGwish – that was the magical word! In that with that worked! Thanks a lot! I got it work!

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