Thank you for your reply. And yes, I do have more questions.
I was aware of the fact that it is a two step process. This is what I did:
I created an EA.Element by
( 'pkg' is the EA.package in which the EA.diagram resides)
Dim eleLink As EA.Element
Set eleLink = pkg.Elements.AddNew("
http://localhost/htdocs/test.html", "Text")
eleLink.Subtype = 19 '// this was not done in the first attempt
eleLink.Alias = "-->>"
And I created an EA.Diagram.DiagramObject by
( 'dia' is my diagram )
Dim dioL As EA.DiagramObject
Set dioL = dia.DiagramObjects.AddNew ("l=100;r=20;t=10;b=18, "Text")
dioL.ElementID = eleLink.ElementID
dioL.DiagramID = dia.DiagramID
After that I ".reloadDiagram" and a diagram object shows up at the specified position. It also has the name I gave it (can check that in the GUI).
However it does not look like an external hyperlink. It does not show any text at all. Neither does it show the icon for a link.
It is simply an empty rectangle of the specified dimension with a dashed border.
When I use the context-menue (right mouse click) on that diagram object and select "Text Properties" I only get a text field with the caption "Notes".
When I use the same context-menue on a manually created external hyperlink, I get a more elaborated dialog box, that allows me to edit the Hyperlink Address as well as the Alias and whether to display the Icon or not.
So obviously I am NOT creating the right type of object by my script.
What am I doing wrong?
Thank you in advance