Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Visual Basic code > Mapping information > Type Definition mapping for Visual Basic (Visual Basic code)
  
Type Definition mapping for Visual Basic (Visual Basic code)
A Type Definition can have a Construction of Alias, Array, Enumeration or Sequence. ACS generates these Type Definitions as follows:
Alias Type Definitions - when used as a type, ACS generates the data type of the Alias Type Definition as the name of the type.
Array Type Definitions - when used as a type, ACS generates the Name of the Array Type Definition as the generated type. All other properties of the Array Type Definition are ignored.
Enumeration Type Definitions:
ACS generates an enum declaration for the Enumeration Type Definition.
When used as a type, ACS generates the Name of the Enumeration Type Definition as the name of the type.
Sequence Type Definitions - when used as a type, ACS generates the Name of the Sequence Type Definition as the name of the type. All other properties of the Sequence Type Definition are ignored.
ACS generates the child items, properties and tagged values of a Type Definition as follows.
Child items:
A Type Definition that has Enumeration construction can own Enumeration Literals, which ACS generates as part of the enum definition. For more information, see Enumeration literal mapping for Visual Basic (Visual Basic code).
Properties:
Construction property - this property can be set to Enumeration, Alias, Sequence or Array:
When set to Enumeration, ACS generates an enum declaration. For Modeler items that use the Type Definition as a type, ACS generates the Name of the Type Definition as the type.
When set to Alias, for Modeler items that use the Type Definition as a type, ACS generates the Name of the item that is referenced through the Data Type property as a type.
When set to Sequence, for Modeler items that use the Type Definition as a type, ACS generates the Name of the Type Definition as the type.
When set to Array, for Modeler items that use the Type Definition as a type, ACS generates the Name of the Type Definition as the type.
Data Type property - for Alias Type Definitions only, when Modeler items use the Type Definition as a type, ACS generates the Name of the item that is referenced through the Data Type property as a type. For Sequence and Array Type Definitions, the Data Type property is ignored.
Name property - for Array, Enumeration and Sequence Type Definitions, ACS generates this property as the identifier of the type. For Alias Type Definitions, ACS ignores this property.
* 
ACS may modify the Type Definition name that is added to the code to make it valid for Visual Basic. You can specify the exact identifier to add to the code through the CODE_GENERATION_NAME property of a Type Definition. See Modification of item names when inserted into Visual Basic (Visual Basic code).
Visibility property - for Enumeration Type Definitions only, ACS generates the enum with the set access (Package is generated as Public).
All other properties are ignored.
Tag Definitions:
When the «VB Delegate» stereotype is applied to a Type Definition, ACS generates a delegate for the Type Definition.
VB Delegate Text tag definition - if a value is set, ACS generates that value as the text of the delegate.