Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 961 Bytes

README.md

File metadata and controls

27 lines (14 loc) · 961 Bytes

autocad-attributes

A python script i used to get drawing attributes from an autocad file

How it works

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()

Usage

  1. Open up the Autocad file you wish to get attributes from
  2. run app.py
  3. Check the csv file for writer_path to see attributes listed

Other Recources

  1. AutoCAD Document object in pyautocad