pyautocad
pyautocad copied to clipboard
_ctypes.COMError
when type the example:
for obj in acad.iter_objects():
print obj.ObjectName
a bug occurred
Traceback (most recent call last):
File "<pyshell#10>", line 1, in
I'm getting the same thing. My system specs are:
- macOS Mojave 10.14.5
- Python 3.7.2 running in virtualenv.
- pip 19.1.1.
I worked around this issue by removing old versions of acaxenu.tlb and axdbenu.tlb from "C:\Program Files\Common Files\Autodesk Shared".
Eg. I'm currently running Autocad 2020, therefore please ensure only acax23enu.tlb and axdb23enu.tlb are available.
Relevant area of code is api.py lines 22-28