Author Topic: Association Component -> Package within AI  (Read 5399 times)

mamomuc

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Association Component -> Package within AI
« on: September 20, 2004, 09:08:59 am »
Hi there,

I try to make a association between a component an a package within the automation interface. The result is, that the connection exist if I check the connector, but in the link-view of the package or the component no relation is visible.

Has someone an idea how I can make the association visible?

I make the association with the following commands (variables are replaced´):
set connector = component.connectors.addnew(package.name, "Association")
connector.supplierID = package.packageID

Cheers
Markus

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Association Component -> Package within AI
« Reply #1 on: September 20, 2004, 04:07:39 pm »
Try adding as the next two lines:

connector.Update
component.connectors.Refresh

Hope that works for you.
The Sparx Team
[email protected]

mamomuc

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Association Component -> Package within AI
« Reply #2 on: September 21, 2004, 12:03:40 am »
Hi KP,

thanks for the tip. I have already tried to refresh and update the elements. The result has no effect.
Another idea?

Markus

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Association Component -> Package within AI
« Reply #3 on: September 21, 2004, 05:35:08 pm »
If you e-mail the part of your code that isn't working, we can have a closer look: [email protected]
The Sparx Team
[email protected]