1
Automation Interface, Add-Ins and Tools / add an existing class to an existing diagram
« on: February 07, 2007, 08:18:13 am »
Hi all,
I want to use an addin to add existing classes and objects in a package to an existing diagram in the same package. Sounds straightforward but..i am only a newbe. The .addNew method seems to work fine for creating new stuff and adding it to a Collection but what about stuff that already exists. Maybe its the order of .updates and .refreshs that just doesn't make the stuff appear on the diagram.
I have got some code that adds an an existing class(Element?) to an collection of DiagramObjects of a Diagram. It runs with no exceptions, just no class on diagram.
Cheers
I want to use an addin to add existing classes and objects in a package to an existing diagram in the same package. Sounds straightforward but..i am only a newbe. The .addNew method seems to work fine for creating new stuff and adding it to a Collection but what about stuff that already exists. Maybe its the order of .updates and .refreshs that just doesn't make the stuff appear on the diagram.
I have got some code that adds an an existing class(Element?) to an collection of DiagramObjects of a Diagram. It runs with no exceptions, just no class on diagram.
Cheers