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?
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2013-02-26T21:21:05Z by SystemAdmin
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 PostsACCEPTED ANSWER
Re: Is there an example of cloneDiagram?2013-02-26T21:21:05Z in response to SystemAdminNew 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.