Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > Modeling IDL code in Modeler > Creating IDL Items > Creating a value type (IDL code)
  
Creating a value type (IDL code)
1. In the Packages pane, locate the Package or Model that is to own the Value Type.
2. Right-click the Package or Model, point to New, point to Class Model, and then click Class.
3. Type the name of the Value Type, and then press the Enter key.
4. Right-click the Class, point to Links > Stereotypes, and then click CORBAValue.
5. If you want the Value Type declaration to use the custom keyword:
a. On the Value Type's Property Pages, click the CORBAValue tab.
b. Set the tagged value of the isCustom tag definition to TRUE.
6. If you want the Value Type declaration to use the truncatable keyword:
a. On the Value Type's Property Pages, click the CORBAValue tab.
b. Set the tagged value of the isTruncatable tag definition to TRUE.