## 4.1. Compiling, Debugging and Running your Customized Autodyn Version on Microsoft Windows

We recommend that you use the supplied Microsoft Visual Studio development environment solution file (ad_usrsub.sln) for compiling, debugging, and linking user subroutines with Autodyn. This solution file and other user subroutine files will be created upon selection of Options > Create User-Subroutine Project. The location of this user subroutine folder can be chosen freely by the user.

Note: Due to a system limitation, the icons for some user interface buttons may not display correctly when running a customized version of Autodyn. If the user observes this behavior, moving the user subroutine folder to a location with a shorter pathname will resolve the issue.

Once the solution is loaded into the development environment, changes to the user subroutine files can be made and the release and debug customized Autodyn versions can be compiled.

In order to run your customized Autodyn version from within Workbench, you should set the preferences within Workbench as follows:

- Right click on Autodyn system's Setup cell and from the drop down menu that appears choose 'Select User Executable'. Navigate to the user compiled executable you wish to use for this Autodyn system.

- To deselect your own user executable and to run the standard Autodyn release version again, right click the Setup cell of the Autodyn system and from the drop down menu that appears choose 'Remove user executable'.

You can confirm which executable will be used for a given Autodyn system by right click on the system Setup cell and select Properties.

If you require debugging of your customized Autodyn version, you must run the program from outside of the Workbench environment. The development environment solution is setup to allow debugging of the executables. Ensure that the solution configuration is set to Debug and select Start debugging from the Debug drop down window.

Release 18.2 - © ANSYS, Inc. All rights reserved.