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 event in a model (Visual Basic code)
  
Modeling a Visual Basic event in a model (Visual Basic code)
A Visual Basic event is modeled through a Modeler Operation.
To model a Visual Basic event in a model:
1. In Modeler, right-click the Class or Interface that models the element that is to own the event, point to New, and then click Operation.
2. Type the name of the event, and then press the Enter key.
3. Right-click the Operation, point to Links > Stereotypes, and then click VB Operation.
4. Open the Operation's property pages.
5. On the VB Operation tab, set the value of the VB Event tag definition to True.
6. Set the values of standard properties and Tag Definitions (applied by the «VB Operation» stereotype) as required.
For more information about how ACS generates the values of an Operation's standard properties and Tag Definitions, see the related links below.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied tag definition.
7. If you want to specify a default value for the event, on the Data Type tab, in the Default box, type the default value.