Invoking Custom Schematic Actions

ACT global callbacks for schematic actions provide hooks that listen and respond to activity on the Workbench Project Schematic. You can use these hooks to define custom processes or actions to be executed at specific times in the Workbench schematic workflow.

Schematic callback support is accomplished with the Action Observation feature. This feature provides notification before and after every action processed by the schematic. This enables ACT to identify a point in the workflow so you can specify that a custom action be executed either before or after that point. Both pre- and post-action callback support has been added to eleven distinct schematic actions (such as Create, Update, Refresh, and so on.)

ACT does not observe schematic activities until at least one extension provides one callback for a schematic action. At that time, ACT starts observing the requested schematic action and invokes your callback. Most of the schematic callbacks receive a user task as an argument. (For more information, see the ANSYS ACT API Reference Guide.)

Once observations of schematic actions have begun, a user-registered schematic callback is invoked for every component that exists in the Project Schematic. This applies to both installed (Workbench-defined) and custom (ACT-defined) tasks. For example, if you create an analysis system and update the project, ACT invokes the update-related callbacks up to n times, where n = the number of components (tasks) in the system (task group).


Release 18.2 - © ANSYS, Inc. All rights reserved.