Recent Posts

Pages: [1] 2 3 ... 10
1
Programming & Code / Re: Selection Manager
« Last post by Yacine on Today at 08:10:17 AM »
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?)
2
Programming & Code / Re: Selection Manager
« Last post by Yacine on Today at 08:04:17 AM »
.
3
Programming & Code / Selection Manager
« Last post by Yacine on Today at 07:33:00 AM »

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".


This is here the tool, with the following features:
  • You can save either "static" selections, which are in fact lists of shape IDs
  • and dynamic selections, which are computed by means of interpreting a formula that interprets to TRUE. eg "PinX>1" or "LineColor=1"
  • When saving you can either use the proposed name of "sel_" + current date and time, or a custom name. eg "Corners", "Shapes", "Valves", whatever.
  • The selections can be modified, renamed or deleted.
  • Modifiying would mean that you select the list entry, then take the current selection as the new one. That is in case the selection type is "static".
  • If the selection type is "dynamic", you're asked for a new formula.
  • The form has two check boxes, which I hope are self explanatory. One is to enable and disable the automatic selection, the second will make the tool either create a new selection or add to the previously selected shapes.
What else?
  • Under the hoods, the form will write in the user section rows with a prefix of "sel_". The prompt is used to store the selection type and the value is either a semi-colon separated list or a formula. This way the selections are saved automatically and can be restored just by calling the form.
  • When using dynamic selections, the form writes in a cell "user.temp" of the doc an enhanced version of the formula and reads it to check whether the shape complies with the condition. This may be slow. But hey, still way faster than doing it manually.
What is open?
  • I haven't implemented an automatic repair of the IDs lists for the case shapes are deleted. The "redefinition" feature will help till then.
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
4
General Visio / Re: Area select without dragging background
« Last post by Yacine on Today at 02:06:52 AM »
... by the way, there's one option which has been named already but not described in the depth it deserves.

Put the background shapes on a "background" layer, then depending upon the situation lock or unlock it. That's 3 mouse clicks away.
5
General Visio / Re: Area select without dragging background
« Last post by Yacine on Today at 01:51:08 AM »
I think the problem is not doing CTLR+clk...clk...clk, but to do it over and over again.

In Jupyterlab I help myself by defining lists of shapes.

eg:
myRedShapes = list(vWin.Selection)
myBlueShapes ...

and reusing them - eg:
[vWin.Select(shp,visSelect) for shp in myRedShapes]

or

for shp in myBlueShapes:
  shp.Cells(xyz).Formula = 123

so far for the unuseful REPL functionality of Jupyterlab ( ;) ).


For VBA I thought about writing a modeless form with a list holding lists of shapes.
There would be a "save selection as..." button, probably also a delete and a re-define one.
Selecting an item in the list would select the according shapes.
The list items would be stored in the shapesheet of the doc or the page.

There would be also a possibility to have dynamic lists - that is where you define a condition instead of having a fixed list.

The selection routine will need to cover the case when shapes are deleted and update the item accordingly.

... unfortunately I have it already in Jupyterlab, so my motivation to write it in VBA is not the highest.
--> could be something for Paul's tool collection


Continuation here:
http://visguy.com/vgforum/index.php?topic=9904.msg45283#msg45283
6
General Visio / Re: Area select without dragging background
« Last post by vojo on June 30, 2022, 07:54:27 PM »
I suppose the CTLR+clk...clk...clk does not address your need?
7
Quote
Unregistred visitors cant create posts there…
True.

This is annoying that it is telling me wrong for more than 10 times before it works.

https://ibb.co/VjK305f
8
General Visio / Re: Area select without dragging background
« Last post by tomscrace@gmail.com on June 30, 2022, 04:28:48 PM »
Using the Lasso tool is pretty good for selecting items... but still doesn't get you what you need.
9
The very 1st time that you try to create/comment on a post, you must become a registered member.  Until that happens, you can read only.
Unregistred visitors cant create posts there…
10
The very 1st time that you try to create/comment on a post, you must become a registered member.  Until that happens, you can read only.  After that, you need to be logged in to become "interactive".  Log-ins time out, the duration is specified at log-in.  Once logged in, then you can undo your seatbelt and are free to roam about.  Occasionally, an account is flagged for abusive/inappropriate behavior.  That normally prevents you from logging in.  But, for a normal acct, there are no restrictions, no repeated submissions.  Might there be a security restriction at your end?  I believe some restrictions might inhibit proper forum operation.  I do not have sufficient clearance to look into such high level behavior.
Pages: [1] 2 3 ... 10