A python script i used to get drawing attributes from an autocad file
This script uses IDispatch interface from wincom32 in creating an Autocad COM object. Introduction to COM concept - Read Chapter 5
After the object has been created we access the active document using autocad's VBA (ActiveDocument).
We then get the ActiveModelSpace
- Checkout Autocad Document Object
Then we access the access the EntityName
and GetAttributes()
- Open up the Autocad file you wish to get attributes from
- run
app.py
- Check the csv file for
writer_path
to see attributes listed