Python drive autocad, but autocad 2020 is not workable

Python drive autocad, but autocad 2020 is not workable

lihongmm
Community Visitor Community Visitor
223 Views
1 Reply
Message 1 of 2

Python drive autocad, but autocad 2020 is not workable

lihongmm
Community Visitor
Community Visitor

We use python to drive autocad, some version is workable, but some version isnot, like 2020

0 Likes
224 Views
1 Reply
Reply (1)
Message 2 of 2

daniel_cadext
Advisor
Advisor

How are you using Python, through ActiveX?

 

The project I’m working on is 2021-2025, however, if your using ActiveX, you can generate wrappers from acaxXXXENU.tlb using makepy. You can then make those wrappers juicy and delicious by adding in VARIANT <-> Python type conversions

You maybe be able to find some hints here

 

https://github.com/CEXT-Dan/PyRx/blob/main/PyRxStubs/utility/makeActiveXLib.Py

https://github.com/CEXT-Dan/PyRx/blob/main/PyRxStubs/AxApp24.py

 

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes