Book a Demo

Author Topic: Find all "diagram" elements, or...  (Read 2326 times)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Find all "diagram" elements, or...
« on: January 31, 2005, 02:47:55 pm »
OK, having created a bit of a mess by splitting a use case into two new use cases (each of which has an associated activity diagram) I need to find all the places in this model where I have inserted the activity diagram from the original use case as a "hyperlink" so I can change the relevant ones to the new diagram.
(OK - I admit it - I have actually split 15 use cases.... :( )

Does anyone know how I can locate all the diagrams that have these hyperlinks in them.

tia
Bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Find all "diagram" elements, or...
« Reply #1 on: January 31, 2005, 04:30:07 pm »
Bruce,

You may have to get your hands dirty with this one, either Automation Interface or Access...

At a quick glance, it seems that hyperlinks are added to the t_object table with t_object.Object_Type="Text" and t_object.PDATA1 (a.k.a. MiscData(0) in the AutInt) set to the diagram ID of the diagram pointed to.

Hope this helps,

Neil
« Last Edit: January 31, 2005, 04:31:47 pm by KP »
The Sparx Team
[email protected]