Skip to content

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

License

Notifications You must be signed in to change notification settings

Themaytrix/autocad-attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages