Quick Drop Enthusiasts

Add remove/rewire shortcut that doesn't do a wire cleanup

Related to the recent topic of ctrl+shift+w doing wire cleanup, I would like to see a default version of ctrl+r that does NOT do a cleanup on my wiring.  In other words, if I start with code like this:

Capture.PNG

And then select "Undeploy Project.vi" and type ctrl+r, I get this:

Capture1.PNG

This is a basic example, but I've seen really goofy rewiring when you have lots of non-railroaded methods tied to the same class wire or reference.  I've taken to first deleting the reference wire branch that connects the VI I want to remove to the main class/ref trunk and then selecting the VI and hitting ctrl+r so that I get this:

Capture2.PNG

If I then click that top wire and do ctrl+u, I get the wacky wiring in the middle screenshot, so I assume ctrl+r is doing a cleanup after deleting the VI.  My manual workaround is a little tedious, and I often forget to do it and end up doing a lot of ctrl+z.  I'd like to see ctrl+r do the noninvasive wire remove (screenshot 3), and then maybe make ctrl+shift+r do the remove+cleanup (screenshot 2).

 

David

0 Kudos
Message 1 of 8
(325 Views)
7 REPLIES 7
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

I must admit, I often cringe when I'm about to do Ctrl-Space, Ctrl-R and realize that it's gonna clean up wires I don't want it to clean up. But I'd say that's the minority of the time...most of my Ctrl-Rs, I'm happy for it to clean up the wires.

 

Since Ctrl-Shift-R already does some special stuff (remove structure, remove unused inputs of growable functions), what if I made it so that if you type 'w' in the Quick Drop text box before pressing Ctrl-R, it will refrain from doing a wire cleanup?

DNatt, LV R&D
Message 2 of 8
(319 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

Yeah, as long as there's a way to do it, I'm all for it!

0 Kudos
Message 3 of 8
(311 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

Ok, barring catastrophe this change will be in LabVIEW 2020. If you want to try it now in LabVIEW 2019, replace the following files with the ones attached to this reply and if you get a chance to try it out, let me know how it works for you.

 

resource\dialog\QuickDrop\plugins\Remove and Rewire.vi

vi.lib\Utility\QuickDropSupport\Remove and Rewire Objects_core.vi

 

(standard disclaimer: backup shipping LabVIEW files before replacing them, etc. etc.)

DNatt, LV R&D
Download All
0 Kudos
Message 4 of 8
(276 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

Thanks Darren!

 

I only have access to 2018 and earlier.  If you can backsave to 2018, I'd be happy to test and provide any feedback.

 

David

0 Kudos
Message 5 of 8
(272 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

Sure, here they are saved in LabVIEW 2018. Let me know how it goes.

DNatt, LV R&D
Download All
0 Kudos
Message 6 of 8
(269 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

Works so far.  I'll stress test it on some odder wiring schemes and let you know if there are any niche cases.

 

Thanks again!

0 Kudos
Message 7 of 8
(264 Views)
Highlighted

Re: Add remove/rewire shortcut that doesn't do a wire cleanup

I just took them even further back to 2016, which is the version I am actively developing in at the moment.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Download All
0 Kudos
Message 8 of 8
(249 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.