Book a Demo

Author Topic: Operations and functions without Addin's?  (Read 4906 times)

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Operations and functions without Addin's?
« on: April 14, 2014, 05:24:20 pm »
Hi Sparks Community,

iam a student apprentice and very new to UML and newbie at EA.

Story:

I try to make some operations that can collect and select elements:

GetType, GetAllOperations, GetAttributes, GetAllOwnedElements, GetName, SelectByClassifier, Flatten, ToSet, SelectBySterotype, SelectByStartWithNumber, SetColorTo and so on.
also combine them , and may color the elements wich are selected.

Problem:

I first tried to start with "Addins" with that great tutorial of mr. bellekens.
I hadn't the rights for the registry and probably won't have them in the future.

Is there way to do the operations in some scripts or other methodes/scripting languages ?

Maybe with VBScripts or JScripts ?


I would be very pleased if you could give me some hints on my questions.  :)


Best wishes
Mathias

« Last Edit: April 14, 2014, 07:12:13 pm by mathaiskrill »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Operations and functions without Addin's?
« Reply #1 on: April 14, 2014, 07:25:51 pm »
Hello Mathias,  

EA support both VBScript and JScript. If you select :
Settings, MDG Technology, EAScriptLib
you will find valuable examples for scripts.

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Operations and functions without Addin's?
« Reply #2 on: April 14, 2014, 07:28:13 pm »
Check Tools/Scripting. You can write on-the-fly scripts in JScript and VB Script. It's also possible to run scripts externally using EA's API where you could utilize a variety of programming languages.

q.

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Operations and functions without Addin's?
« Reply #3 on: April 14, 2014, 07:33:20 pm »
Thank you Helmut and qwerty !

Do you know may the following:

1. Access to the EA Gui or UI for new Windows ?
2. Is there a scripting engine for c# ?
3. Any Python engine mayby?

Best wishes
Mathias
« Last Edit: April 14, 2014, 07:35:24 pm by mathaiskrill »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Operations and functions without Addin's?
« Reply #4 on: April 14, 2014, 08:58:24 pm »
You can use every language which support Windows COM.

There isn't a lot in the EA API to access EA GUI.

I don't know of any scripting environment for C#. You can use C# without a scripting environment.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Operations and functions without Addin's?
« Reply #5 on: April 14, 2014, 09:38:56 pm »
You can use Python. You can find a sample in my Scripting book (also in the free sample). I'd touch C# only with pliers, but Geert Bellekens has a lot of C# stuff available for the public.

q.

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Operations and functions without Addin's?
« Reply #6 on: April 15, 2014, 11:13:34 pm »
thank you for your help qwerty