Author Topic: [EA12] EA_OnPreDropFromTree  (Read 5059 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
[EA12] EA_OnPreDropFromTree
« on: June 11, 2015, 08:52:44 am »
Hi guys,

I read the docs concerning the above mentioned event, which says on http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/automation_and_scripting/pre_new_events.html

"Creation of a new element by dropping onto a diagram from the Project Browser or Diagram Toolbox"

I tested this for the diagram toolbox, because this is the behavior which I'd need. However this is not fired for toolbox dragging but only for project browser dragging.

Did anyone experience the same issue?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: [EA12] EA_OnPreDropFromTree
« Reply #1 on: June 11, 2015, 08:55:02 am »
The problem is the documentation.

The name of the function clearly indicates that it's only from the project browser.

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: [EA12] EA_OnPreDropFromTree
« Reply #2 on: June 11, 2015, 08:56:53 am »
Thank you for clarification, Simon.
Is there any way of getting x and y coordinates as well for toolbox dragging?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: [EA12] EA_OnPreDropFromTree
« Reply #3 on: June 11, 2015, 09:00:19 am »
Doesn't look like it. Neither EA_OnPreNewDiagramObject or EA_OnPostNewDiagramObject give coordinates.

So the question is, why do you need it? It sounds more like you want to be customizing the toolbox.
« Last Edit: June 11, 2015, 09:00:41 am by simonm »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: [EA12] EA_OnPreDropFromTree
« Reply #4 on: June 11, 2015, 09:32:39 am »
The documentation has been corrected to only refer to dragging from the Project Browser.
Best Regards, Roy