Visual Studio
Visual Studio replaces the VSTA integrated development environment (IDE) that is used for editing VSTA macros.
With VSTA 2.0, you edited VSTA macros into an integrated Visual Studio 2008 based environment. Starting from VSTA 2012, VSTA does not provide its own Visual Studio based environment. Instead, you need to acquire and install Visual Studio 2012, Visual Studio 2013 or Visual Studio 2017 (Pro or Community Edition) to edit VSTA macros. Otherwise, you will only be able to run VSTA macros.
Multiple projects in a single session
With VSTA 2.0, you could load only one VSTA project at a time in the editor and you had to select the active macro library from the Macros dialog box.
With VSTA 2017, once a VSTA macro library is opened in the 3DEXPERIENCE platform, the VSTA project is loaded in Visual Studio. You can now open multiple projects simultaneously and switch from one project to another without leaving Visual Studio.
Debug Behavior
Debugging is controlled exclusively from Visual Studio:
- Each project has now a unique static entry point for debugging, CATMain.
- In Visual Studio, you can press F5 to start debugging. Since you can open multiple projects simultaneously, to select the active project, right-click the project and select Set as StartUp Project in the Solution Explorer.
Save Behavior
Potential pending modifications are kept in memory as long as a macro library is opened. When closing Visual Studio, if you do not save the project when prompted, you will not lose pending modifications until you close the macro library. You can then reopen Visual Studio to continue editing the project.
Warning: You have to close Visual Studio before closing the 3DEXPERIENCE platform. Otherwise, you will not be prompt to save your changes. Any unsaved changes will be lost. |
Selecting a macro library in the Macro libraries dialog box or reopening the macros GUI will build and save the VSTA project automatically.