43.2.9. Converting a ProcessNet Visual Basic (VSTA) Project into a ProcessNet Visual Basic (General) Project

Opening Projects in Visual Studio 2010

  1. ProcessNet Visual Basic (VSTA) uses VSTA project files. To open these files in Visual Studio, you must edit them as follows.

  2. Edit the . vbproj file that contains ThisApplication in Notepad or another editing program..

  3. Delete <ProjectTypeGuids> in <PropertyGroup>.

    ../_images/image06713.png
  4. Delete the contents below. (ThisApplication.designer.vb).

    ../_images/image06815.png
  5. Delete the contents below. (ThisApplication.designer.xml).

    ../_images/image06915.png

Deleting VSTA File

  1. Delete file ThisApplication.designer.vb and ThisApplication.designer.xml because they are necessary only in ProcessNet (VSTA). .

    ../_images/image07014.png
  2. Open Visual Studio and convert the project using the Convert Project dialog window.

Deleting VSTA Codes

  1. In the ThisApplication.cs file, delete the region named VSTA generated Code.

  2. In the ThisApplication.cs file, delete the CloseWindow() function. If the user uses this function, do not delete the function.

    ../_images/image07111.png

Declaring the RecurDyn Application

  1. To access the RecurDyn Application without using VSTA, declare IRecurDynApp under the common variables, as highlighted in the following code.

    ../_images/image0728.png

Editing the Initialize() Function

  1. Edit the highlighted code in order to import an application using the app variable declared before the Initialize() function.

    ../_images/image0739.png

Now, you can build the edited project and use it in ProcessNet General.