Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Polymorph on September 25, 2024, 06:39:00 am

Title: Integrating with MS Visual Studio
Post by: Polymorph on September 25, 2024, 06:39:00 am
I am decided to finally learn scripting  :)

I am finding the native script editor limited in functionality and wondered if I can somehow integrate with an IDE like MS Visual Studio.

Is this possible? Have people done it? What are the advantages/disadvantages? Does anyone have an idiot's guide to getting it working?
Title: Re: Integrating with MS Visual Studio
Post by: Geert Bellekens on September 25, 2024, 04:25:55 pm
I've explored that route as well, and given up.

There are a number of issues
- The scripts are stored in the database. So once you update a script you should update it in the database
- Scripts are preprocessed by EA before executing. the "as EA.Element" is removed, the included scripts are included. You can't execute raw scripts outside of EA.
- When scripts are being run, EA adds the Repository and Session object to he runtime environment.

All-in all the better editor is not worth the hassle in my opinion

Geert
Title: Re: Integrating with MS Visual Studio
Post by: Polymorph on September 25, 2024, 05:21:58 pm
That is all I needed to hear! If you've given up then I won't even entertain the idea!

Thanks
Title: Re: Integrating with MS Visual Studio
Post by: qwerty on September 25, 2024, 08:05:31 pm
I (almost) ever used scripting outside of EA. You just can't compare that editor inside EA with a real IDE.

q.