07-03-2013 10:41 AM
I have a VI with hundreds of round boolean indicators. I would like to change them to rectangular. The only way I know to do this right now is to right click, then choose Replace and navigate to the rectangular type. If I select several indicators at a time, this right-click context menu is no longer avaialble.
Is there a way to do this across the entire VI, either by editing a params file somewhere or by being able to select many at the same time/
07-03-2013 10:53 AM
You can do it with VI scripting.
Create a VI that gets references to all the booleans in your VI. Use the Scripting Invoke node Replace, to replace that control with the new control. The Style ID for the square LED is 21013
07-03-2013 10:54 AM
thank you, I'll see what I can do...
07-03-2013 12:42 PM
@bmishoe wrote:
thank you, I'll see what I can do...
Here's a Quick Drop plugin that'll do what you describe. Change the style constant in the For loop to change what it replaces the selected objects with.
This VI is in LabVIEW 2012 and was not made pretty. 🙂
08-20-2013 12:22 AM
Sorry, I'm just now seeing this thread. You probably didn't need to write a custom scripting VI to do this... there is a built-in Quick Drop Keyboard Shortcut in LabVIEW 2010 and later that will perform a replace of one or more selected objects. So you could select the round LEDs, press Ctrl-Space, type "Square LED", and press Ctrl-P. That will replace all of the selected objects with the object type you specified in the Quick Drop text box.