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
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
RE: Pop-up dialog box /tcl/NX8
CODE
----
kukelyk
RE: Pop-up dialog box /tcl/NX8
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
"Error: invalid command name "tk_getOpenFile" while executing"
Do i need anykind of extra library or plugin?
RE: Pop-up dialog box /tcl/NX8
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