Cancel
Showing results for 
Search instead for 
Did you mean: 

inputbox in NXopen , python

Experimenter
Experimenter

HI all, 

 

for my tool in NXOpen i need an inputbox , so the user can give in some values for variables.

I found how to do a messagebox;

  NXOpen.UI.GetUI().NXMessageBox.Show("Test Code", NXOpen.NXMessageBox.DialogType.Information, "hello world")

 

But i can't find the command line for a inputbox

 

thanks in advance

2 REPLIES

Re: inputbox in NXopen , python

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

There are some truly ancient "UF" namespace calls (uc1600 - uc1653).

But most times now people would create a GUI (Block Styler or other) for this.

There may be calls I'm missing

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: inputbox in NXopen , python

Siemens Phenom Siemens Phenom
Siemens Phenom

.NET languages have the NXOpenUI.NXInputBox() class

 

In Python, you can use NXOpen.UF.Ui.GetInput[Integers/Numbers/Doules], which are wrappers for some of the uc16xx methods that @Ken_A mentions, or you can use non-NX packages such as Tk.

 

NX Open Python docs: NXOpen.UF.Ui Class