python操作autocad
时间: 2023-12-19 17:31:52 浏览: 101
python操作cad
以下是使用Python操作AutoCAD的示例:
1.导入pyautocad库并创建AutoCAD对象
```python
from pyautocad import Autocad, APoint
acad = Autocad(create_if_not_exists=True)
```
2.在AutoCAD中显示消息
```python
acad.prompt("Hello, Autocad from Python\n")
```
阅读全文