they are working on it, its called live components
Lets step back a bit
Hidden is an attribute that is a boolean. it has two states, either true or false. Now any number greater than 0 is deem as true, any number = 0 or below is deem to be false. So write false into the Hidden attribute value, or 0 or - 12.569, the object will be seen, whereas write 0.0001, true, 1, 500, the object will be hidden.
So just to make less typing, I use 1 and O for true and false,
Try some simple ideas first:
Using the interact (finger tool)
Ideally each bolt should be an instance of the same definition, so if I select hidden and onclick in one it should open in the others, so try putting
set(“Hidden”,0,1)
in the onclick value and that should propagate too
however your example has four separate components
So had to add the formula to each one. Then I added an onclick to the box to make them all visible, otherwise need to turn on view / hidden objects.
example (8) onclick.skp (102.0 KB)
Now how to choose from dropdowns
simply fill the value section with the options: 0, or 1 then pass that to the bolt concerned
example (8) dropdowns.skp (73.2 KB)
now you want to choose the bolts using one textbox, that means that one has to extract the text from the input string. A more difficult task.
so use the FIND function
FIND(findText,text,position)
this returns an integer at findText’s position if findText exists in text, otherwise it returns -1, an error. Errors can stop a DC from working! so to overcome this one can add the text you wish to find at the end of the search string. Then one compares this to the length of the original string to see if it is within it.
There is no error trapping in this function, there is likely to be no fix, as they want live components, that is, they want to build another wheel rather than fix this one, so you need to workaround. You will find this often, but myself and others have traveled this road and are willing to help
Consider the if statement, it has a condition, when met , returns the next comma delimited value, otherwise the last,
the condition is the findText position within the length of the original string?
if(position_of_ findText<=LEN(original_text),0,1)
which can be placed in HIDDEN
example (8) ONE TEXTBOX.skp (47.0 KB)