Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations 3DDave 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
Apr 9, 2014
7
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.
 
Replies continue below

Recommended for you

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