Topic
IC4NOTICE: 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.
1 reply Latest Post - ‏2013-02-26T21:21:05Z by SystemAdmin
SystemAdmin
SystemAdmin
1305 Posts
ACCEPTED ANSWER

Pinned topic Is there an example of cloneDiagram?

‏2013-02-26T20:11:01Z |
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?
Updated on 2013-02-26T21:21:05Z at 2013-02-26T21:21:05Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1305 Posts
    ACCEPTED ANSWER

    Re: Is there an example of cloneDiagram?

    ‏2013-02-26T21:21:05Z  in response to SystemAdmin
    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.

    Any workarounds?