Book a Demo

Author Topic: CS-Script Engine and Addins?  (Read 3443 times)

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
CS-Script Engine and Addins?
« on: April 25, 2014, 10:54:25 pm »
Hi again, iam still gather experience (and frustation too) with EA Automation.

I have the imagination of using Addins for launching CS Scripts (with CS Script engine?) wich do the most work of selecting, filtering, gathering informations from the EA model (like i often asked in other threads too).

On the other side i would like to collect similar informations about the element i have currently selected in the model. Wich i suppose is only manageable through Addins?:

"Because the Add-In receives object handles associated with
the currently running copy of Enterprise Architect, more
information is available about the current user's activity; for
example, which diagram objects are selected"
User Guide PDF-Page 2604.

My internship-boss asked me for the cs-skript engine thing for easy/fast edditing. Iam open for new ideas.

May some of you have ideas wich prevent me to walk in the wrong directory for days or weeks ^^?  :-?

Best wishes
Mathias
« Last Edit: April 25, 2014, 11:12:39 pm by mathaiskrill »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: CS-Script Engine and Addins?
« Reply #1 on: April 25, 2014, 11:47:22 pm »
Well, I used Perl to make dynamic add-ins. The available add-ins could be changed by either modifying the registry (with a simply syntax) or a configuration file (also provided via the registry). So when EA starts it provides the current number of available add-in commands. While EA is open it is possible to modify the scripts so each time you run them you get the most recent version being executed. Saves a lot of hassle with installing new add-ins (since you don't need to do that).

I guess the same mechanism should be possible with other scripting languages too.

q.

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: CS-Script Engine and Addins?
« Reply #2 on: April 26, 2014, 12:07:11 am »
nice - thank you :)