×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Extracting data from ACAD into Excel

Extracting data from ACAD into Excel

Extracting data from ACAD into Excel

(OP)
Hi There,

I have several hundred drawings (paths and file names)listed in an Excel spreadsheet.  I need a program to open each dwg, determine if specific layers and text styles are in that drawing, and if so, if they are being used.  Then I need the results added to columns in the Excel spreadsheet beside the file name so I can total how many (and which) files include the layers / text styles and how many (and which) files use them.  

I've seen a script file that goes through a list of drawing file names, opens each drawing, changes properties, saves, closes, and then opens the next drawing.  However, I do not know where to find out how to use code to determine the existance of the layers and text styles, determine if they are used, and extract the data into Excel.

The books I've consulted indicate that this is possible, but they don't say how to do it.

Any help or direction would be appreciated.

Thanks,
Larry

RE: Extracting data from ACAD into Excel

(OP)
I've written a lot in Basic in the 80's, and a fair amount in early VB.  I have a book and access to VB 6.  I haven't used VBA with AutoCAD.

Let's give it a shot and if I get lost I'll find someone to help me with the VB part of it.

Thanks,

Larry

RE: Extracting data from ACAD into Excel

Once you have the application objects of Excel and Autocad, pushing and pulling information is fairly easy. Post back as you need assistance. I know that the users here are glad to help.
 

http://mechcad-insider.blogspot.com/
 
"The fear of the Lord is the beginning of wisdom"

RE: Extracting data from ACAD into Excel

Hi Larry,

You may find it a bit easier just to use AutoCAD's VBA.  There is already a sample program of sending information to Excel via AutoCAD VBA and may be able to just modify it to do what you need.  You'll find it in the sample directory.

HTH
Todd

RE: Extracting data from ACAD into Excel

(OP)
Borgunit,

I guess we need to assume I'm a total idiot.  Do you know good books that I can use to get a background so I can ask intelligent questions and understand simple answers?  I'm using AutoCAD 2007 Bible by Ellen Finkelstein.  Other than the script file I mentioned, her examples of AutoLisp and VBA refer to automatically drawing circles, etc.  That will allow me to work out syntax, etc., but doesn't touch on what I need to do.

Thanks,
Larry

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources