Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on November 25, 2012, 11:04:51 pm
-
Hello,
I would like to "drag and drop" a diagram on another one diagram. I can do it as "Diagram Frame" or "Diagram Reference" or "Hyperlink". It does not matter what I can choose the matter is how can I find the original diagram from which actually copy is done. I must use the EA API.
Thank you for your replies.
-
See my book page 7: PDATA1:For UMLDiagrams: Diagram_ID of the underlying diagram;
here NType == 0 means Frame and 1 Reference
q.
-
Thanks for the fast replay. Should I write SQL query or does something exist in EA.Element or other objects?
-
PDATA == MISCDATA; but there's no equivalent for NType
q.
-
Thanks, it's clear, but I see some problem with Hyperlinks. Object_Type of it is Text that is very confusing. Let say Object_Type of Notes object is also Text. How can I know who is who? I have some loop by DiagramObjects and when I check the type of Hyperlinks and other different objects they can be same (Text) and NType also.
-
PDATA1 == 0 -> text
PDATA1 > 0 -> Hyperlink
q.
-
PDATA <> 0 -> Hyperlink. Otherwise it will fail on replicated databases. (Equivalent for anything referencing an ID)
-
Thank you very much for your fast answers:).