1
Automation Interface, Add-Ins and Tools / Automate "Insert Related Elements" feature
« on: November 27, 2021, 12:10:53 am »
Hi all,
I would like to automatically create diagrams. Why?
Assume I have a large number of model elements (e.g. classes) in my repo and I want to create a diagram for each single model element that shows its related elements.
What I am planning to do:
* Iterate over all model elements
* create a diagram for each model element
* put the model element onto the diagram
* populate all related model elements of that model element in focus onto the diagram as well
In manual operation I would use the "Insert Related Elements..." feature from the diagram object's context menu.
Is there an equivalent in the automation interface? Neither the Diagram class not the DiagramObject class seems to provide such a method, correct?
Any advice appriciated.
Felix
I would like to automatically create diagrams. Why?
Assume I have a large number of model elements (e.g. classes) in my repo and I want to create a diagram for each single model element that shows its related elements.
What I am planning to do:
* Iterate over all model elements
* create a diagram for each model element
* put the model element onto the diagram
* populate all related model elements of that model element in focus onto the diagram as well
In manual operation I would use the "Insert Related Elements..." feature from the diagram object's context menu.
Is there an equivalent in the automation interface? Neither the Diagram class not the DiagramObject class seems to provide such a method, correct?
Any advice appriciated.
Felix