Book a Demo

Author Topic: VB: How to access the Linked Feature information  (Read 4207 times)

hugelsb

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • Modelling is the future!
    • View Profile
VB: How to access the Linked Feature information
« on: April 11, 2012, 02:25:30 am »
How I can access the linked feature information with the VB Interface? With the built in reporter you can access this information under Source/Target Linked Feature, but I couldn’t find any way to do this with VBA interface for Word.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: VB: How to access the Linked Feature informati
« Reply #1 on: April 11, 2012, 03:06:35 am »
t_object.PDATA1 = feature name, .PDATA2 = Object_ID, .PDATA3 = linked feature elemen

q.

hugelsb

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • Modelling is the future!
    • View Profile
Re: VB: How to access the Linked Feature informati
« Reply #2 on: April 11, 2012, 05:01:28 am »
Hi,
Thank you for your fast response, but I don't understand what you mean with t_object? Which element contains the comma delimited information?
Thank you for clarification.
Regards


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: VB: How to access the Linked Feature informati
« Reply #3 on: April 11, 2012, 05:56:13 am »
repository.SQLquery ("SELECT * FROM t_object WHERE object_id = " + note.ElementID)

will return a XML formatted query result of the according note element. You need to inspect the mentioned columns.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VB: How to access the Linked Feature informati
« Reply #4 on: April 11, 2012, 03:33:09 pm »
You can also search the forum for "linked feature". Should yield quite a few posts with the solution to your question.

But if you have to ask with t_object is about...  :-/

Geert