06-08-2018 04:26 AM
Hi,
I am trying to create a quick drop for enclosing selected block diagram objects with error case structure. I was trying to use Move Selected Objects Method at first without any success (the method was returning error code 1 no natter I tried). Then I found Enclose Selection 2 Method which is exactly what I need (based on the help). But it doesn't work... In the attachment you can find my test VIs.
Can anyone help me with this?
Solved! Go to Solution.
06-10-2018 12:48 PM
Ok, so the problem was that when a new object is created, the selection list is cleared.
11-15-2019 12:15 PM
Can you elaborate on how you worked around that?
Thanks,
Michael
11-15-2019 03:48 PM
If you get the selection list before creating the object, you should be able to use that same array to set the selection list. Basically you're selecting the same items after it gets unselected.
11-15-2019 03:59 PM
FYI there's a right-click plugin for wrapping selected diagram code with an error case:
https://forums.ni.com/t5/LabVIEW-Shortcut-Menu-Plug-Ins/Wrap-in-Error-Structure-llb/ta-p/3524283