With the Extended Generation tool, generate RAP message templates, Publisher API stub code, or both from selected message definitions.
Generate message definitions from anywhere in the RAP Messages model. Message templates are generated as XML files in RAP data stream format. Stub code is generated in C.
-
From the PowerDesigner main menu, choose .
If this option is not available, make sure you are in the RAP Messages model.
-
Select Check Model (default).
With Check Model selected, PowerDesigner checks that the model is consistent before generating files.
-
Enter the location for generated files.
-
In the Selection tab, select message definitions to generate.
-
(Optional) Name and save the selection for future use.
-
In the Generated Files tab, choose file types to generate:
Option |
Description |
message_name.c
|
Generate Publisher API stub code |
message_name.xml
|
Generate message templates |
-
Choose OK.
PowerDesigner checks the model (if selected). If an error is found, generation stops, and an error dialog shows what you must fix. If no errors are found, files are generated in the folder you specified.