CAPL Script

SymbolMappingSetDynamicMappingSet

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

void SymbolMappingSetDynamicMappingSet(char mappingSetName[]);

Function

Changes the dynamic mapping set that will be used for mapping in theCANoeSymbol Mappingdialog. Only the mapping relations contained in the given dynamic mapping set and in the static mapping set are considered.

Parameters

mappingSetName Name of a dynamic set which shall be activated.

Return Values

-1, if no mapping set with the given name is found.

0, if the mapping set with the given name is found and its contained mapping relations are mapped.

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

on key '1'
{
  // Activate DataSet1 and map its contained mapping relations
  SymbolMappingSetDynamicMappingSet ("DataSet1");
}