@eximo wrote:
How about constants? How do you make a constants that updates with typedefs?
I have a typedefs cluster which contains components, when I update it all the typedefs in the project update (as expected) but the constants do not.
I offered a method to do that at the tail end of this Nugget about Type defs.
The values in a type def constant do not get updated if you simply change the default value in the type def. This is used a lot and is dangerous because ....
This is what you may want to try...
If the data type of the type def changes LV will replace all of the previous instances of that type def with the new flavor. IN an old version of LV on a slow machine I once witnessed the diagram being updated "in slow motion" when the old version was deleted and the new one used to replace it.
So a "jiggle the handle" approach may get you what you want... but then again maybe not.
If you edit the type def, and change the default of one of the values and THEN add a new filed to the type def you could then do "apply changes" followed by a "Save All. At this point I think all of the instance of the cluster will be updated including the constants (I think).
Then remove the bogus value you added to the type def and again do a "apply Changes and Save All.
It just might work!
But I recommend what I posted in that old Nugget.
Ben