Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tehila1 on February 12, 2014, 01:49:22 am
-
Hello!
How can I refer in my program in a different way to a diagram hyperlink (type= text) and a simple text box (type=text)?
Thanks.
-
Hyperlinks have PDATA1 > 0 which is the diagram_id.
q.
-
Thanks for quick reply!
How I manage the PDATA1 from the model element which its type is "Text"?
-
PDATA corresponds to MiscData in the API where it's r/o. To change it use Repository.Execute with an appropriate UPDATE.
q.
-
For other's sake:
MiscData(0) corresponds to PData1 which contains the appropriate diagram ID in case the element is a diagram hyperlink.
-
Hyperlinks have PDATA1 > 0 which is the diagram_id.
q.
Actually != (or <>)
-
So there are negative entries as well. What do I have to do to have you tell me which those are?
q.
-
So there are negative entries as well. What do I have to do to have you tell me which those are?
I think it's only when using JET 4 replication that negative IDs are created.
Edit: And SQL Server might create negatives too. Most users would never need to worry about it (but, of course, we do)
-
Quite exotic cases. I guess then != 0 is enough to know ;-)
Thanks.
q.