Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: rothnic on September 30, 2013, 10:06:40 am

Title: Diagram Frame - Linked Diagram
Post by: rothnic on September 30, 2013, 10:06:40 am
I'm trying to get the linked diagram via the scripting interface from a diagram frame. The sparx ea documentation states that the diagram frame is a composite element.

However, when I check isComposite, I get back False. If I set isComposite to True, then when calling .CompositeDiagram, the resulting CompositeDiagram is a blank composite structure diagram, instead of the linked document.

Am I missing something here? There has to be some way to access the linked diagram. The information has to be there somewhere since when I double click on the diagram frame it goes to the correct diagram.
Title: Re: Diagram Frame - Linked Diagram
Post by: rothnic on September 30, 2013, 10:57:04 am
Well after looking further into Inside EA, I was able to find the answer. This is extremely non-intuitive though.

Code: [Select]
theDiagramID = theDiagramFrame.MiscData(0)
Title: Re: Diagram Frame - Linked Diagram
Post by: qwerty on September 30, 2013, 08:11:42 pm
Well, that's why I wrote this book  ;)

q.