Book a Demo

Author Topic: Invoke "Refresh Script Tree" from add-in  (Read 4572 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Invoke "Refresh Script Tree" from add-in
« on: December 04, 2014, 06:33:35 pm »
Anyone have an idea how to refresh the scripts in EA from an add-in?.
The script view has a button called "Refresh Script Tree" that does exactly this, but I don't think this is exposed in the API.
I've also tried to reload the model, but that doesn't help.

Geert

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Invoke "Refresh Script Tree" from add-in
« Reply #1 on: December 05, 2014, 09:48:48 am »
Hi Geert,
Not possible from an add-in.  There is no API call for this function.  Just out of curiosity, why are you needing to do this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Invoke "Refresh Script Tree" from add-in
« Reply #2 on: December 05, 2014, 06:03:31 pm »
Hi Aaron,

I'm working on an add-in that forwards the add-in events to script functions.
Beta version available here: EAScriptAddin_Setup_v1.0.3.0(BETA).msi
My add-in is updating the scripts (via a database update since Scripts are not accessible via the API), so I need to be able to refresh the scripts to make the changes visible.
Could you make a feature request om my behalf to expose this function in the API?

Thanks

Geert