About the Automation Script Adapter

The Automation Script adapter allows you to pass arguments and run an automation script to create or modify a 3DSpace object, such as a part or a simulation.

This page discusses:

See Also
Configuring the Automation Script Adapter with a VBA Script
In Other Guides
Automating Tasks Using Macros

You can insert the Automation Script adapter into your simulation process and use the adapter to run a Visual Basic for Applications (VBA) or a Python script. The script, in turn, can operate on, or create, a 3DSpace object with a selected app.

If your script creates a new object or modifies an existing object, the app does not save your changes automatically and you cannot perform a manual save while the script is running. However, you can do either of the following to save an object that your script modified or created:

  • Include save commands in your script.
  • Use the Capture object in to capture the last object opened by the script in an object parameter. The app saves the last opened object (created or modified) in the object parameter when the script completes.

When Automation Process Composer runs the Automation Script adapter, it starts a 3DEXPERIENCE client in the background. Therefore, you must have the 3DOrchestrate Station that runs the automation script installed on a system that has the same prerequisites as the 3DEXPERIENCE client.

If you are running your process on a remote station, you must run it from a browser using Process Composer or Performance Study, and close the 3DEXPERIENCE on your computer.