11-05-2022 02:12 PM
Hi All
Is there a way to find and replace the class (.lvclass) control/indicator of a member VI?
My situation is that I have a new class which is similar (but different) to another old class. And rather than code up new VI's (methods) in the new class, I've taken a copy of them from the old class and place them under the new class.
However, each copied VI still uses the old class on its terminals. I could go through each VI and replace the class control/indicator with the new class type, but I thought I would try using the Find and Replace.
Find and Replace seems to find the old class controls/indicators of the selected VI's, but I can't seem to select the new class type (.lvclass) to replace them.
Is this a failure on my part, or an inadequacy of the Find and Replace feature?
Thanks
Solved! Go to Solution.
11-07-2022 12:55 AM
The help for the find dialog says:
You'll note that you see those on class controls and indicators, so even if you could select it, it wouldn't help you.
You could write your own scripting tool to do this or try to find something that already does this. I believe OpenGDS has this feature and there might also be tools for this online.
11-07-2022 01:51 AM
In G# there's a clone methods tool. It'll replace class refs while cloning. Internal classes in the method isn't affected though so there's some cleanup needed.
Honestly i haven't tried on a standard class, but it should work.