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 enum in a model (Visual Basic code)
  
Modeling a Visual Basic enum in a model (Visual Basic code)
A Visual Basic enum is modeled through a Modeler Type Definition.
To model a Visual Basic enum in a model:
1. In Modeler, right-click the Model or Package that is to own the enum, point to New, point to UML, point to Structure, point to Type Definition, and then click Enumeration.
2. Type the name of the enum, and then press the Enter key.
3. Open the Type Definition's Property Pages, and set the Visibility as required.
4. Create the enum's members through the Enumerations tab of the Type Definition's property pages.