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 function in a model (Visual Basic code)
  
Modeling a Visual Basic function in a model (Visual Basic code)
A Visual Basic function is modeled through a Modeler Operation.
To model a Visual Basic function in a model:
1. In Modeler, right-click the Class, Data Type or Interface that is to own the function, point to New, and then click Operation.
2. Type the name of the function, and then press the Enter key.
3. Right-click the Operation, point to Links > Stereotypes, and then clickVB Operation.
4. Set the values of Operation's standard properties and Tag Definitions (applied by the «VB Operation» stereotype) as required.
For more information, see Operation mapping for Visual Basic (Visual Basic code) and Setting a tagged value for an applied tag definition.