43.2.9. Converting a ProcessNet Visual Basic (VSTA) Project into a ProcessNet Visual Basic (General) Project
Opening Projects in Visual Studio 2010
ProcessNet Visual Basic (VSTA) uses VSTA project files. To open these files in Visual Studio, you must edit them as follows.
Edit the . vbproj file that contains ThisApplication in Notepad or another editing program..
Delete <ProjectTypeGuids> in <PropertyGroup>.
Delete the contents below. (ThisApplication.designer.vb).
Delete the contents below. (ThisApplication.designer.xml).
Deleting VSTA File
Delete file ThisApplication.designer.vb and ThisApplication.designer.xml because they are necessary only in ProcessNet (VSTA). .
Open Visual Studio and convert the project using the Convert Project dialog window.
Deleting VSTA Codes
In the ThisApplication.cs file, delete the region named VSTA generated Code.
In the ThisApplication.cs file, delete the CloseWindow() function. If the user uses this function, do not delete the function.
Declaring the RecurDyn Application
To access the RecurDyn Application without using VSTA, declare IRecurDynApp under the common variables, as highlighted in the following code.
Editing the Initialize() Function
Edit the highlighted code in order to import an application using the app variable declared before the Initialize() function.
Now, you can build the edited project and use it in ProcessNet General.