I'm creating a plugin to create different views of the same diagram.
We'll have a comprehensive diagram, and would want a diagram autogenerated that only contains items relevant to, say life-support.
My plan was to use the diagram's cloneDiagram method, and then go through all of the nodes of the cloned diagram, removing the ones that don't have appropriate tag values.
I've got the plugin working up until the point where it calls cloneDiagram, passing in the new diagram name and the new destination package. When it calls that, the environment freezes up and I have to kill the process.
Is there a trick I'm missing?
Pinned topic Is there an example of cloneDiagram?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-26T21:21:05Z at 2013-02-26T21:21:05Z by SystemAdmin
SystemAdmin 110000D4XK1305 Posts
Re: Is there an example of cloneDiagram?2013-02-26T21:21:05ZThis is the accepted answer. This is the accepted answer.New Update: It works if I run the plugin from the navigator with the diagram closed, but hangs when I right-click on the displayed diagram and activate the plugin. It's like the clone doesn't work if the diagram is being displayed.