Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Why do I have to uncheck "Act On Current Selection Only" to select related edges?

0 votes
So I wand to select a node's connected edges. If I check "Act On Current Selection Only", nothing moves.

If I uncheck "Act On Current Selection Only", the edges do get selected.

If it's not clear, a 20 sec video may be worth a thousand words:

https://i.imgur.com/4UwhiQ3.mp4

I don't understand why it doesn't work when "Act On Current Selection Only" is checked.
in Help by (330 points)

1 Answer

0 votes

The "Select Elements" tool works like this:

  1. Choose a type of elements you want to select. (You do that by checking the appropriate "Use These Criteria" checkbox.)
  2. Iterate over the elements of the type chosen in step 1.
  3. Collect each element that satisfies the search criteria.

"Act On Current Selection Only" restricts step 2 above from "iterate over all elements" to "iterate over the selected elements of the type chosen in step 1".

I.e. you were telling the tool to collect a subset of the already selected edges. However, there were no selected edges in your case (because it is not possible to have selected nodes and selected edges at the same).

"Act On Current Selection Only" can be used for one purpose only: To further reduce the set of currently selected elements through an additional search criterion for elements of the same type. And to make that use case work, you will always need to check "Clear Selection First" as well.

E.g suppose you want to select all red nodes labeled "select me". Since the tool's UI does not offer a way to specify several search criteria, you would have to select all red nodes first, then run the tool with "Act On Current Selection Only" and "Clear Selection First" for nodes labeled "select me".

by [yWorks] (161k points)
Legal Disclosure | Privacy Policy
...