Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Visual Basic code > Modeling Visual Basic code in a model > Modeling a Visual Basic parameter in a model (Visual Basic code)
  
Modeling a Visual Basic parameter in a model (Visual Basic code)
A Visual Basic parameter is modeled through a Modeler Parameter.
To model a Visual Basic parameter in a model:
1. In Modeler, right-click the Operation that models the element that is to own the parameter, point to New, and then click Parameter.
2. Type the name of the parameter, and then press the Enter key.
3. Open the Parameter's Property Pages, and click the
Options tab.
4. Click the Select button, and then select the item that is to be the type of the parameter.
5. If you want ACS to generate a ByVal parameter, set the Mechanism property to 'In'. If you want ACS to generate a ByRef parameter, set theMechanism property to 'Out' or 'In and Out'.
6. If you want ACS to generate a default for the parameter, in the Default box type the default value.