Author Topic: Find hyperlinks located in notes (property dialog)  (Read 3491 times)

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Find hyperlinks located in notes (property dialog)
« 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Find hyperlinks located in notes (property dia
« Reply #1 on: September 24, 2015, 07:39:45 am »
The note property of the according Note element will have something like
Code: [Select]
bla <a href="$inet://hyper"><font color="#0000ff"><u>hyper</u></font></a> blabla

q.

ashwinv

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Find hyperlinks located in notes (property dia
« Reply #2 on: October 02, 2015, 01:00:13 am »
you could perform a simple regex against the notes field to get all such hyperlinks