Definition tab

In this tab, you can specify the generation target of the instance. You can also assign values to variables that are declared in the Skeleton, or define properties and assign them a value that will be taken into account upon generation.

Generation target

By default, the generated files are stored with the design files in a root folder whose default name you can change. You can separate them from the design files or even change the generation project and folder.

Generation project
The files that are generated from this instance will be stored in the project displayed in this field.

The project of the corresponding design file is the default project. If it has been kept, Default is displayed between parentheses next to the project. However, if it has been explicitly changed in the instance, only the project is displayed here, without any other indication.

You can select a new project in the drop-down list.

If you change the project, the generation folder is automatically set to the default value (rpp). The new project will be taken into account upon the next generation.

Generation folder
The files that are generated from this instance will be stored in the folder displayed in this field, inside the project displayed in the previous field.

The folder of the corresponding design file is the default folder. If it has been kept, Default is displayed between parentheses next to the folder. However, if it has been explicitly changed in the instance, only the folder is displayed here, without any other indication.

If the default folder has been kept, you can specify a root path for the generated files in the Properties wizard (accessed by clicking the Change project properties button). This path will be automatically inserted in this field, at the beginning of the folder.

You can select a new folder in the drop-down list. Creating a folder is impossible at this stage. Folders must have already been created in the project, for example from the Resource perspective.

If you change the folder, it will be taken into account upon the next generation.

Change project properties
This button opens the Properties wizard, where you can perform the following actions:
  • Change the default folder. This folder contains the design files and is the default target of the generated and metadata files.
  • Indicate a root path for the generated files, if the default generation folder has been kept.
  • Indicate a root path for the metadata files, which are stored by default in the same folder as the other generated files.
Source Code ID
You can indicate the name of the file that is generated from the instance. The name of the generated file can differ from the instance name.

Properties

You can define properties that will be replaced, when the Source Code is generated, by the values that are indicated in this table. You can also specify a default value for a property that is declared in the Skeleton.

Click Add to add a property. A new line, with the values Unknown, is displayed in the table. Specify the following elements:
  • The property name (mpcode for example),
  • The default value of the property (MP01 for example),
  • The property description (Micropattern code for example).

A property can be defined at several levels.

The priority order is as follows:
  • A parameter that is indicated in a micropattern call in the source of the calling instance,
  • A variable that is defined as a property in the Definition tab of the calling instance,
  • A variable that is defined as a property in the Definition tab of the Skeleton.

Feedback