Book a Demo

Author Topic: Elements set of relations  (Read 3322 times)

SebastianB

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Elements set of relations
« on: April 10, 2007, 05:35:42 am »
Hi!
i'm developing an add-in in vb 6 and i've got a problem trying to handle relations between elements

i've used
element.GetRelationSet ("rsDependEnd")
to access the dependencies

but now i want to add new dependencies... i wanna add new items to the set of relations... can it be done?  ???

thx!!!!

SebastianB

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Elements set of relations
« Reply #1 on: April 12, 2007, 04:51:48 am »
can it be done??

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Elements set of relations
« Reply #2 on: April 12, 2007, 07:03:13 am »
Yes, it can be done. Add to the list of connectors, and set the type to dependency. Look at the API reference section of the user guide.

The allowable types for various elements are listed in the comment text in the tables (you'll know which ones when you see them). For connectors you are directed to look at the t_connectortypes table in the EAP file. You can open an empty EAP file with MS Access and view the entries there. Choose the one that apples; it would be best to preserve the capitalization exactly. Use this as the first parameter (the "Type") when you create the connector (or an element, or whatever) with AddNew().

VB6 and VBA handle this just fine.

[Remember to call Update() to save your connector after you set it up.]

David
No, you can't have it!