Generating Visual Basic code (Visual Basic code)
This topic provides brief instructions for using ACS to generate Visual Basic code. For more information about using ACS, see
Overview of ACS (ACS).
To generate Visual Basic code:
1. From Modeler, open the model from which you want to generate Visual Basic code.
3. Load ACS: on the
ACS/TDK Control tab, click the
Load or Unload ACS button, and wait for ACS to load.
After ACS is loaded, the ACS/TDK Control tab displays Connected.
4. In Modeler, select the root item for the generation.
5. Create a Generation Settings Scheme for the root item:
a. On the ACS/TDK Control tab, in the drop-down list ensure that New Scheme is selected.
b. On the
ACS/TDK Control tab, click the
Edit ACS Scheme button.
Modeler opens the Launch ACS/TDK dialog.
c. Click the
button associated with the
Generator Dll box, and select the
vb generator Code Generator DLL.
If you have installed Modeler to the default location, the supplied Code Generator DLL resides in the following folder.
For Windows 7 and later operating systems:
▪ C:\Users\<user>\AppData\Roaming\ItsShadow\ScriptDir\vb_gen\vb generator
For 64-bit versions of pre Windows 7 operating systems:
▪ C:\Program Files (x86)\Windchill Modeler\Modeler\System\VB_Gen\vb generator
For 32-bit versions of pre Windows 7 operating systems:
▪ C:\Program Files\Windchill Modeler\Modeler\System\VB_Gen\vb generator
d. Click the
button associated with the
Target Directory box, and select the folder to which you want to generate Visual Basic code.
e. Click the
button associated with the Settings File box, specify a name and location in which to save the Generation Settings Scheme, and then click
Open.
f. Click Save Only, and then click Cancel.
6. On the
ACS/TDK Control tab, click the
Start button.
The ACS/TDK Control tab displays Loading Model, followed by either First Generation or Updating Code, followed by Ready.
7. If this is the first time you have used the Generation Settings Scheme to generate code, no code is generated at this point. To generate code the first time, you must force a generation:
a. Ensure that the ACS/TDK Control tab is displaying Ready.
b. On the
ACS/TDK Control tab, click the
Force Generate button.
c. From the confirmation dialog, click Yes.
ACS generates the Visual Basic code to the target folder you specified in the Generation Settings Scheme.