Running the Operation

When the configuration is created and validated, you can then run the operation.

This task shows you how to:

Run the Operation

  1. From the main menu, select a configuration stored in your project, and then expand Run.

    Tip: These commands are also accessible from the shortcut menu in many places.

  2. Select one of the following commands:
    • Run: Launch the Run command.
      Note: From the Environment Options dialog box, in the General Properties area, if Activate Smart Launch Mode is set to true, then the operations are launched only if a change was made in the model. By default, the property is set to false.

      See Defining Environment Options.

    • Clean and Run: First, deletes the previously generated files (if any), locally and on the cloud. Then launch the operation execution.
      Notes:
      • On the cloud, all the cloud assets are deleted, including those created from the 3DEXPERIENCE in the Software Production Engineering app.
      • Before deleting the generated local files, a message appears to let you confirm.

    Tip: You can also launch the Run command for the configuration that is selected in the diagram viewer from multiple places:
    Command Access Description
    Containment tree Do one of the following actions:
    • Right-click a configuration element and select Software Code Generation > Run > Run.
    • Right-click an input element and select Software Code Generation > Run with....
    Diagram viewer menu Select Run Selected Configuration .

    Keyboard Press Ctrl + Alt + G.

    The operation is launched.

    If a post operation script is specified, it is launched after the operation, irrespective of its success or failure. See Running a Post Operation Script.

    Note: A progress bar indicates that the generation is running. Once completed, a notification is displayed:
    • If a failure occurred.
    • If the verbose mode is activated from Environment Options > CATIA Software Producer Client General Properties > Notifications section. See Defining Environment Options.
    Tip: You can switch projects (or even shut down your computer, saving your work first) while waiting for the generation result as it is running on the cloud. The widget keeps the IDs of the cloud assets in the record files located in <local workspace path>\etc\operations\spoRecordFile.json.

    When reopening your project, a message indicates that operations were running in the meantime and proposes to inspect the result, and download it.

  3. From the diagram viewer menu, click Show in File Explorer to display the generated files for the selected configuration diagram.

Navigate the Logs

  1. From the Software Producer Logs tab, verify the operation.

    Notes:
    • At the end of the logs, the location of the generated files is displayed. It corresponds to the localPath defined in the configuration. See Configuring Code Generation.
    • For Software Producer messages that are not related to a specific project, a log file is stored next to the modeling tool log file.

  2. From the Software Producer Log menu , use the following commands to navigate the logs:
    Command Description
    Scroll to the Start Scrolls to the top of the panel.
    Scroll to the End Scrolls to the bottom of the panel.
    Lock Position By default, when some new logs are printed, the scrollbar moves down. To prevent the panel from scrolling automatically to the bottom, click this button.
    Clear Clears the panel.
    Show Log File Opens the file where the logs are written (each project has its own log file).
    Show Timestamp Adds a timestamp as a prefix to the messages.
    Show Additional Messages Shows more messages related to the SOP client.
    Level Shows the messages of the selected level, hides the others. By default, All levels is selected to display all types of messages. Other available types are:
    • Info
    • Error
    • Warning
    Find Highlights the search results and navigates to them
  3. From the shortcut menu menu , use the following commands:
    • Copy
    • Select All