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 module in a model (Visual Basic code)
  
Modeling a Visual Basic module in a model (Visual Basic code)
A Visual Basic module is modeled through a Modeler Class, Data Type or Interface.
To model a Visual Basic module in a model:
1. In Modeler, right-click the Package that represents the parent folder or namespace of the module you want to create, point to New, point to UML, point to Structure, and then click Class, Data Type or Interface.
2. Type the name of the module, and then press the Enter key.
3. Right-click the Class, Data Type or Interface, point to Links > Stereotypes, and then click VB Class.
4. Right-click the Class, Data Type or Interface, point to Links > Stereotypes, and then click VB Unit.
5. Open the Class', Data Type's or Interface's Property Pages, and then click the VB Class tab.
6. Set the tagged value of the VB UnitType tag definition to Module.
7. Set the values of the Class', Data Type's or Interface's standard properties and Tag Definitions (applied by the «VB Class» and «VB Unit» stereotypes) as required.
For more information, see Class mapping for Visual Basic (Visual Basic code) Setting a tagged value for an applied tag definition.