Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MathiasK 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
-
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.
-
nice - thank you :)