chuongmep / chuongmep/CadPythonShell

Does not work with AutoCAD/Civil 3D 2025

未关闭
#16 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
C#
星标
122
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

### Search existing issues

- [x] I have searched the issue tracker and confirmed that I was unable to find existing issues for the problem I am experiencing.

### The problem

If I try to open the Python console in Civil 3D 2025 by running the `PYTHONCONSOLE` command or by clicking the `Run CPS` button in the ribbon, I get an error window:

![Image](https://github.com/user-attachments/assets/b14ca0ed-3e5a-4b5d-9137-f152e466907d)

Then it brings up the shell window showing this:

![Image](https://github.com/user-attachments/assets/25e722b6-3de6-4851-b410-883d02014c01)

If I then try to run some Python code within the window, I get a message and Civil 3D freezes indefinitely:

![Image](https://github.com/user-attachments/assets/51b7df06-a405-4439-8ec1-e57db3f33d43)

I assume the CadPythonShell plugin needs upgraded to work with .NET framework 8, which AutoCAD/Civil 3D now uses.

### Release version

1.1.3

### Operating system

Windows 10

### Steps to reproduce the behavior

_No response_

### Log files

_No response_

### Screenshots

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

首先使用 PYTHONCONSOLE 命令和功能区上的 Run CPS 按钮在 Civil 3D 2025 中复现该故障,然后检查 issue 中显示的错误窗口和 shell 窗口。完成的标准是 Python 控制台能够打开并运行 Python 代码,而不会使 .NET Framework 8 下的 Civil 3D 卡死。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, python
领域
desktop, devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。