Apex remote control

Enables access to Apex and the scripting API from an external Python interpreter or IDE 

  1. Execute Python interpreter or IDE (such as PyCharm) from your desktop or IDE
  2. From the interpreter (or your external script) import the Apex remoting package - this package enables access to Apex from external Python environments
  3. Launch the Apex application using the remoting package - remoting.launchApplication()
  4. Import the apex module and any other packages your script requires
  5. From this point onwards, use the Apex scripting API just as you would normally 
  6. When typing Apex commands directly into an interpreter, Apex responds immediately and you can observe any objects that your commands create
  7. Apex can be manipulated interactively between inputs from the interpreter/IDE
  8. Terminate your script or interactive session with remoting.shutdownApplication() to close Apex. 

Use the example below to get started,

External Python Console Demo

  • Demo files are in folder:
    • “Scripting Demo Assets/External Console Demo”
  • Use the following files:
    • "test-remote.py"
    • Front_Suspension_CAD.X_T
  • Use the Python interpreter that ships with Apex.
  • Make sure that your Python environment can see the following folders:
    • installation_directory\CL#\python3\Lib\site-packages
    • installation_directory\CL#\python3/DLLs
    • installation_directory\CL#\python3/lib
    • installation_directory\CL#\python3
    • installation_directory\CL#\python3\lib\site-packages