Book a Demo

Author Topic: Copy and Paste of class Elements  (Read 4402 times)

Marko Kaiser

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Copy and Paste of class Elements
« on: March 12, 2013, 08:00:44 pm »
I am looking for an event that is fired if a class element is pasted from the clipboard into the modeltree. Most routines offered by the Addin API only work on diagrams.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copy and Paste of class Elements
« Reply #1 on: March 12, 2013, 11:40:29 pm »
I think all EA_OnPreNew and EA_OnPostNew events should fire regardless of the location or method used to create the new thing.
So if it doesn't fire when pasting in the project browser I could consider that a bug.

Geert

Marko Kaiser

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Copy and Paste of class Elements
« Reply #2 on: March 12, 2013, 11:45:03 pm »
The help documents say "on a diagram" fot the mentioned methods.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copy and Paste of class Elements
« Reply #3 on: March 12, 2013, 11:47:36 pm »
Quote
The help documents say "on a diagram" fot the mentioned methods.
Well, that's just stupid. ::)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy and Paste of class Elements
« Reply #4 on: March 13, 2013, 12:02:35 am »
...but then unfortunately not a bug.

q.