If you’ve been doing VC for any length of time, you’re probably very aware of this little trick. But if you’re new to VC, you might not be aware that you can dynamically control your characteristics. You can use object dependencies to set a characteristic to invisible, or set it to input or no input.
For me, when I model a product line, I often need to add characteristics that aren’t always available for the user to see or to input. For this, I will create reference characteristics based on the following table:
|
Screen_DEP
|
INVISIBLE
|
YES
|
Makes characteristic Hidden (same as checking No display below)
|
|
INPUT
|
YES
|
Makes characteristic available for input (same as un-checking Not ready for input)
|
|
NO_INPUT
|
YES
|
Makes characteristic unavailable for input (same as checking Not ready for input)
|
|
RESET
|
YES
|
Resets all values set by Screen_DEP structure.
|
Simply create a new characteristic, and on the reference tab enter in the Screen_dep for the table, and one of the fields in the 2nd column as the field.
Now, in your object dependencies, you can simple use your standard logic:
$SELF.INVISIBLE = ‘MY_CSTIC’
IF….
now the only catch to this, MY_CSTIC must be spelled properly. There is no syntax checking since it’s a literal. But if you spell it correctly, and if the IF statement is met, MY_CSTIC will be made invisible.
It’s that easy. Very slick and very powerful. If you haven’t already, give it a try.
|
Screen_DEP
|
INVISIBLE
|
YES
|
Makes characteristic Hidden (same as checking No display below)
|
|
INPUT
|
YES
|
Makes characteristic available for input (same as un-checking Not ready for input)
|
|
NO_INPUT
|
YES
|
Makes characteristic unavailable for input (same as checking Not ready for input)
|
|
RESET
|
YES
|
Resets all values set by Screen_DEP structure.
|