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 structure in a model (Visual Basic code)
  
Modeling a Visual Basic structure in a model (Visual Basic code)
A Visual Basic structure is modeled through a Modeler Data Type.
To model a Visual Basic structure in a model:
1. In Modeler, right-click the Package or Class that is to own the structure, point to New, point tobUML, point toStructure, and then clickData Type.
2. Type the name of the structure, and then press the Enter key.
3. Right-click the Data Type, point to Links > Stereotypes, and then click VB Class.
4. If you want to generate the Data Type as a Visual Basic unit file, apply the «VB Unit» stereotype to the Data Type.
For more information, see Modeling a Visual Basic unit file in a model (Visual Basic code).
5. Set the values of the Data Type'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) and Setting a tagged value for an applied tag definition.