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.

Set default properties for elements

+1 vote
When I create edges, I always want them to have smooth bends, and to have the labels positions "centre slider" with a white background. At present it seems that I have to set this each time I add an edge (or, more commonly, select all edges and edit them en masse after each edit).

Is there a way to set the default properties so that, whenever I create an edge, it has these settings on by default?

Actually, it would be nice to be able to set default properties for everything, and (please sir, can I have some more....) per group. e.g. I may set that by default all my elements have blue backgrounds, but then within a node, by default they're all yellow. Again, I know I can do this post-hoc after all my edits, but it would be nice to be able to select my defaults once, rather than change things after every edit.
asked Mar 16, 2016 in Help by PhilEvans (340 points)

1 Answer

+1 vote
 
Best answer
You can add new elements to the palette.  Just create a new palette section with the nodes, edges, and groups customized the way that you like, and then use these in your graph diagrams.

To create a new palette section, either choose Edit->Manage Palette from the menu or right-click the palette and select Manage Palette.

In any graph diagram, create a node, group, or edge with the settings you want.  Right-click on the element and choose Add to Palette, then select the new palette section that you created earlier.  Repeat for other elements until your palette section has the elements you use often.

There are other ways to do this as well, but this should get you started with a custom palette section.
answered Mar 16, 2016 by anonymous
selected Mar 22, 2016 by PhilEvans
Thanks, this partially helps, however in order to save the label position settings, it appears that I have to have an active label on the entry in the palette. As soon as a label is deleted from an edge, the settings revert to the yed defaults. I tried creating an edge, adding a label, setting the format and saving it, and that's fine. But if I delete the label (having edited the properties) then save the edge to the palette, the label settings are lost. Similarly, if I delete the label from an edge, and then recreate it, any settings I applied to the first label are lost.

So - is there a way to save the edge label settings, without having to have a default label for every edge?
I would also like to know how to save edge properties I have created. This doesnt seem possible
Even if you could just copy and paste edges you've created with labels just the way you want them, that would be great.
Hi the anwser helped me a lot. I just saved an edge with an empty label " " and the required properties to the palette. This pretty much does for me what @PhilEvans asked for.
Imprint | Privacy Policy