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 constant in a model (Visual Basic code)
  
Modeling a Visual Basic constant in a model (Visual Basic code)
A Visual Basic constant is modeled through a Modeler Attribute.
To model a Visual Basic constant in a model:
1. In Modeler, right-click the Class, Data Type or Interface that is to own the constant, point to New, and then click Attribute.
2. Type the name of the constant, and then press the Enter key.
3. Open the Attribute's Property Pages, click the Options tab, and then select the Read Onlycheck box.
4. Click the Data Type tab, click the Select button, and then select the item that is to be the type of the constant.
5. In the Default box, type the default value of the constant.
6. Set the values of standard properties and Tag Definitions (applied by the «VB Attribute» stereotype) as required.
For more information about how ACS generates the values of an Attribute's standard properties and Tag Definitions, see the related links below.
For information, see Setting a tagged value for a tagged definition.