Visio Guy

Visio Discussions => Programming & Code => Topic started by: Yacine on July 01, 2022, 12:33:00 PM

Title: Selection Manager
Post by: Yacine on July 01, 2022, 12:33:00 PM

http://visguy.com/vgforum/index.php?topic=605 (http://visguy.com/vgforum/index.php?topic=605)


In the a.m. topic I presented an idea about creating and saving lists of shapes - a kind of "selection manager".


update - 03.07.2022:

These lists are intended to be used as a specialized clipboard, not for copying and pasting data, but for recalling selections.
So that in "bigger" drawings - letting "bigger" be defined by your own perception - you can re-select shapes as you have previously done.
eg: you've selected the "apples", or the "motors", or the "red shapes", done some operations on them and later, even after having closed and reloaded the drawing, you just reload this specific selection and do further operations on them. That's why the saving feature provides an automatic naming - so you won't need to bother about any naming - and with the renaming feature you can specify a proper name, if you feel so.



This is here the tool, with the following features:
What else?
What is open?
I welcome you guys to test it and give some critics.


PS: the tool is in the stencil. Drop the yellow square on the canvas to start the form.
PPS: the VSDX is just for playing. The tool should work with any other vdsx
Title: Re: Selection Manager
Post by: Yacine on July 01, 2022, 01:04:17 PM
.
Title: Re: Selection Manager
Post by: Yacine on July 01, 2022, 01:10:17 PM
Just thought about a "deselect" function, so as to remove a certain selection from the current one.
Eg Take the "frame" selection and remove the "corners", so as to keep only the pure sides.
Not a big deal. A button and 3 lines of code.


In a realistic use case I could for instance do "select all valves", then unselect all parts that are "pneumatically driven".




Thinking about it furthermore, it would be nice to have some sort of logic formula : (SelA AND selB) OR NOT(selB). But I wouldn't know adhoc how to implement it. (Maybe store the results, before applying?)