This Quick Drop Plug-In inserts In-Place Element structures (IPEs) onto selected wires / wire branches. It adds wire-data-type dependant border nodes and may also wire the internal terminals (if the Shift key was pressed).
The plugin creates an undo-history and analyzes the selected wires on the block diagram. IPEs are inserted and the terminals rewired.
If only branches of a wire have been selected, the plugin recognizes which path (from source to sink) the selected branch was on and only connects selected branches to the output (right) side of the IPE while unselected branches are connected (forked) at the input (left) side.
Steps to execute code:
Place the contents of the file archive to: "C:\Program Files\National Instruments\LabVIEW 2010\resource\dialog\QuickDrop\plugins"
Start LabVIEW 2010
Make sure that a Ctrl-Key combination is assigned to the i.vi (I used 'I' because the plugin was originally developped on LV2009 without the insert functions and updated with new LV2010 features)
Open the test-bench ("C:\Program Files\National Instruments\LabVIEW 2010\resource\dialog\QuickDrop\plugins\Insert IPE\test.vi")
Select any wires / wire branches
Execute Quick Drop ( Ctrl-Space-Ctrl-[Shift]-I )
Watch the IPEs being inserted.
VI attached below
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.