Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Uffe on December 16, 2013, 11:41:55 pm

Title: Diagram: duplicate layout
Post by: Uffe on December 16, 2013, 11:41:55 pm
Hi!

Here's a nifty little feature suggestion for you: duplicate diagram layout.
When invoked, this opens up a selector dialog that allows you to select a diagram.
It then runs through the current diagram and, for each element and connector that is present in both the current and the selected diagram, copies the layout.

Useful in situations where you want to show a subset (possibly annotated) of a diagram.
Yes, a selective copy/paste will do this - but only once. This feature would allow you to copy the layout at a later date, after the original diagram has changed.

/Uffe
Title: Re: Diagram: duplicate layout
Post by: qwerty on December 17, 2013, 02:03:35 am
Sounds like a nice feature. Wouldn't it be nice to find that for a few Euros in an EA Store as plug-in? I guess it could be done with an add-in easily. And imagine you could bind that to an icon in the diagram toolbox...

q.
Title: Re: Diagram: duplicate layout
Post by: Uffe on December 17, 2013, 03:25:32 am
I'd be happy if you could bind an arbitrary Add-In menu command to a toolbar, the way you can with the built-in commands. That'd go a long way.

Putting the hacky hacky hack hat on, you could achieve a button-in-diagram-toolbox effect with an element stereotype which, OnPreNew, triggers a function, then returns false. Ewwww, I made a smelly..... But it should work! :)

A (mobile OS of your choice)-like marketplace for Add-Ins is a really cool idea. I doubt Sparx has the resources to spare to set something like that up though. Remember, it might be one of the biggest modelling tools out there, but it's still far from even a million users and you need a fairly big user and developer base to support an infrastructure like that.

As to the possibility of implementing this particular feature, well kinda almost. The problem is that the construct picker dialog opened by Repository.InvokeConstructPicker() only allows selection of elements, not diagrams. So you'd have to implement the diagram selection dialog yourself.

... I feel a feature request coming on...
Title: Re: Diagram: duplicate layout
Post by: skiwi on December 18, 2013, 02:28:34 pm
Or you could use filters and only have one diagram
Title: Re: Diagram: duplicate layout
Post by: qwerty on December 18, 2013, 09:05:08 pm
That's only a work around. Also to include a diagram frame what I used quite often. But there you could not show relations to elements inside the diagram.

q.
Title: Re: Diagram: duplicate layout
Post by: EXploringEA on February 08, 2014, 09:31:49 pm
@Uffe

In terms of your layout - exactly what attributes
position, size, appearance?

nice little AddIn for a tutorial me thinks