Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Stenvang on September 24, 2015, 06:59:20 am
-
Hi
I'm writing a c# add-in to Enterprise Architect v. 10 and got stuck on a problem trying to pull out hyperlinks from notes fields (in the property dialog of an element or diagram, not the Note element).
So lets say I wrote the following in the notes field:
"Something something... Wooops a <hyperlink>. And then something something".
The hyperlink could refer to another element without having a connector bound to it. Is it possible to programmatically find this hyperlink?
-
The note property of the according Note element will have something like
bla <a href="$inet://hyper"><font color="#0000ff"><u>hyper</u></font></a> blabla
q.
-
you could perform a simple regex against the notes field to get all such hyperlinks