NX Feature Templates: Using a Label to show a Warning Message [NX 2206]
HTML-код
- Опубликовано: 9 июн 2024
- I got a great question today about whether we could create a Label in a Product Template dialog that would conditionally display a warning message when a particular input is not incorrect. We of course have a variety of automatic checkers built into NX that can display NX Alert messages, but with a little bit of creativity we can certainly do this inside the dialog in a Label as well. This example walks through the basic "Visibility" control first, and then dives deeper into creating a dynamic string in the Label that incorporates an updated Expression value as part of the message string. Please let me know if you find this useful!
- Наука
Best teacher of NX in YT.
You're very kind! Thank you!
Thanks for providing the solution in such a explanatory and easy to understand way sir. Thank you so much 🙏🙏
My pleasure! Thanks for the feedback!
Is it possible to block the OK and the Apply buttons when test==false, so the user can't create the part when some parameter is wrong?
Great question! Most of the parameter entry widgets have the ability to add limits (upper and/or lower) to each input. If one of these limits is exceeded, the OK and APPLY buttons will automatically be disabled, and warning messages about the out-of-range inputs will be displayed. Does that make sense?
Hi Taylor, the title of this video is "NX Feature Template ..." but you are showing PTS-Studio. Do we have same function in Feature-Template Author?
Hi, Michael! Yes, because we're using the common Template Studio Author environment now, this technique works the same for Product Templates, Feature Templates, and Deformable Components. :-)