Welcome to yEd Q&A! Here you can ask questions and receive answers from other members of the community. And, you can also tell us your most wanted feature requests.
Show/select only graph elements by user-defined attribute values
Your answer
Email me at this address if my answer is selected or commented on:Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
1 Answer
0 votes
Selecting nodes by attrbute values is already possible:
The Structure View in the lower left of yEd has a combobox that initially displays the value "Text". Change this to the name of the desired attribute. The values displayed in the Structure View will now change to display the value of said attribute. Use the Search field to navigate to the desired value. Select the first and all subsequent entries of the same value.
Thank you for your answer but this does not really solve the problem.
It's true that by the search field I can find all nodes with a user-defined attribute e.g. "funktion 1"="true" but the graph diagram (in the main window/pane) does not change.
I'd like to see in the graph diagram only the elements with the said user-defined attribute e.g. "function 1"="true".
Update: At the moment I use a work-around like that:
1. (Edit:) Define a property mapper with use-defined property e.g. "function 1"-> Fill color "red"
2. (Tools:) Select elements with nodes criteria "Fill color" = "red"
3. Copy & paste the selected graph in a new graph
If you select an element in the structure view, the corresponding node is selected in the editor window, too. Therefore you can skip steps 1 and 2 from your workaround by using the structure view.
I don't think so or I didn't understand you correctly ;-)
In the structure view I can only select ONE element but I want to copy ALL elements with a specific attribute...
You can select multiple elements in the structure view by pressing SHIFT or CONTROL key while clicking, similar to, for example, Windows Explorer.
Ok, but this doesn't really help because you have to select all nodes MANUALLY.
And besides I need a feature which select all nodes with a specific user-defined attribute WITHOUT changing the appearance of the nodes (concerning color, description etc.) and this is unfortunately exactly what the search function does...
This would inded be a useful feature, I'm using the pallette window to select all elements of a certain formatting through the Current Elements section. Selecting by data value would be beautiful, even more beautiful if it was incorporated into the select elements dialog box
Your comment on this answer:
Email me at this address if a comment is added after mine:Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please log in or register.
It's true that by the search field I can find all nodes with a user-defined attribute e.g. "funktion 1"="true" but the graph diagram (in the main window/pane) does not change.
I'd like to see in the graph diagram only the elements with the said user-defined attribute e.g. "function 1"="true".
Update: At the moment I use a work-around like that:
1. (Edit:) Define a property mapper with use-defined property e.g. "function 1"-> Fill color "red"
2. (Tools:) Select elements with nodes criteria "Fill color" = "red"
3. Copy & paste the selected graph in a new graph
edited Oct 27, 2011 by sschweizer