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 generic type in a model (Visual Basic code)
  
Modeling a Visual Basic generic type in a model (Visual Basic code)
A Visual Basic generic class, generic structure or generic interface is modeled through a Modeler Class.
To model a Visual Basic generic type in a model:
1. In Modeler, right-click the Package or Class that is to own the generic type:
Point to New, point to UML, point to Structure, and then click Class, Data Type or Interface.
or
Point to New, and then click Class, Data Type or Interface.
2. Type the name of the generic type, and then press the Enter key.
3. Open the Class', Data Type's or Interface's Property Pages, and then click the Optionstab.
4. Select the Template check box.
5. In the Formal Template Parameters, specify the type parameters.
6. Set up the other properties of the Class, Data Type or Interface as necessary.
For more information about modeling classes, structures and interfaces, see:
Modeling a Visual Basic class in a model (Visual Basic code)
Modeling a Visual Basic interface in a model (Visual Basic code)
Modeling a Visual Basic structure in a model (Visual Basic code)