使用 Python 控制台,在您的仿真中快速执行 Python 代码!

功能:

  • 允许在运行时动态执行 Python(非常适合调试长时间运行的仿真)
  • 实现了变量app = getApplication()sim = getSimulation()
  • 按 Ctrl + Enter 或点击“执行”按钮运行脚本
  • 控制台脚本保存在仿真布局中

Python 控制台可在插件商店免费获取。

3 个赞

Python 控制台不再兼容 Visual Components 4.9 及更高版本。
由于一个关键接口已从 .NET API 中移除,我将暂时停止维护此插件。

The Python Console got a workaround and works again with VC 4.9+.
The only downside is, the text window remains white disregarding the chosen Python editor theme.

The new version 2.1 is available in Addon Store from VC 4.9 on.

2 Likes

Python Console is discontinued from VC 5.0 on as dynamic Python execution during runtime is not possible anymore, which was one of the core features.