Visual Studio
Visual Studio replaces the VSTA integrated development environment (IDE) that allows to edit 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. With VSTA 2022, you need to acquire and install Visual Studio 2022 to edit VSTA macros. Otherwise, you are only 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 2022, once a VSTA macro library opens in the 3DEXPERIENCE platform, the VSTA project loads in Visual Studio. You can open multiple projects simultaneously and switch from one project to another without leaving Visual Studio.
Debug Behavior
Debugging occurs exclusively from Visual Studio:
- Each project has 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 remain in memory if a macro library opens. When closing Visual Studio, if you do not save the project when prompted, you do not lose pending modifications until you close the macro library. You can then reopen Visual Studio to continue editing the project.
| Warning: Close Visual Studio before closing the 3DEXPERIENCE platform. Otherwise, you are not prompted to save your changes. Any unsaved changes are lost. |
Selecting a macro library in the Macro libraries dialog box or reopening the macros GUI builds and saves the VSTA project automatically.