The ACP in-app scripting API is organized as a static Python object tree.
This tree includes all loaded models, solutions, definitions, views, and scenes.
You can access the currently loaded object tree through the root object compolyx.DB in the embedded Python shell.