Author Topic: EA_OnPostNewConnector, find the Attribute end, if the Connection is to Attribute  (Read 3804 times)

Ribeye

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
My C# plugin is using EA_OnPostNewConnector to trap when the user creates a new connection, obviously.

One of the nice features of EA is that it allows the user to create a connection from an Attribute of a Class, not just a Class. You select the Attribute and drag from the { that pops up to the target Class.

From within EA_OnPostNewConnector I get the Connection that has been created by the user from the EA.EventProperties eventProperties parameter of EA_OnPostNewConnector.

     repository.GetConnectorByID(eventProperty.value) does the trick.

To test if the Connection is from an Attribute, I am expecting newConnector.StyleEx to have the Attribute details.

But I am seeing ""

I am seeing only one EventProperty in EventProperties, so the Attribute details are not there.

Question: within EA_OnPostNewConnector, how do I find the Attribute end, if the Connection has an Attribute end, not a Class end?


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
I don't think you can. I suspect that information isn't determined until after the broadcast.