Exporting a Set of Message Definitions

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.

  1. From the PowerDesigner main menu, choose Tools > Extended Generation.

    If this option is not available, make sure you are in the RAP Messages model.

  2. Select Check Model (default).
    With Check Model selected, PowerDesigner checks that the model is consistent before generating files.
  3. Enter the location for generated files.
  4. In the Selection tab, select message definitions to generate.
  5. (Optional) Name and save the selection for future use.
  6. 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
  7. 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.
Related concepts
Stub Generation