Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

Status
Not open for further replies.

przemekprem

Mechanical
Joined
Apr 9, 2014
Messages
7
Location
GB
Hi everyone,

I want to create a block for my tool. I have two different options to create my tool and I would like the appearance of the block to change depends on the chosen option (the same as it is in Nx for example for with block creation tool - block looks different for different type). Do you think it is possible? How to do it? I can't find that option.
 
The best way is to design your dialog with all of the blocks you want, then show/hide some of them using the setShow() method.
Should the dialog change based on some input the user makes on the dialog (clicking a radio button etc)? Or should it be based on some values it finds from the model?
Either way, use the setShow() method on the blocks to show/hide the different ones making the dialog change as required.
 
Yes the dialog should change based on an input the user makes on the dialog. Thank you for the answer! Hopefully I'll accomplish it now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top