Example: Dim unavailable options in a custom component dialog box
This example shows how to dim the unavailable options in the custom stiffener detail dialog box based on conditions. You can do this either in the custom component dialog editor or by editing the input (.inp) file manually.
In the beginning of this example all the options are available:
Define that the Left plate class text box is unavailable if only the right plate is created, and vice versa.
Dim unavailable options by using the dialog editor
- Create a custom stiffener detail with all the needed parametric variables that control the creation of stiffener plates.
-
Open the stiffener dialog box for editing.
- In the model, select the custom stiffener detail.
- Right-click and select Edit Custom Component Dialog Box.
-
Define that the
Left plate class text box must be dimmed if only the right stiffener plate is created.
- Unselect the Left plate class text box by clicking the Right plate class text box.
-
Define that the
Right plate class text box must be dimmed if only the left stiffener plate is created.
- In the dialog editor, click to save the changes.
- Close and reopen the model for the change to take effect.
Dim unavailable options by editing the .inp file
Tip:
If you want to hide unavailable options instead of dimming them in the stiffener dialog box, add an exclamation mark in the conditions:
"toggle_field:!LeftC=0;!RightC=1"
The option is now completely hidden when unavailable: