Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA /LISP Routine to export mtext from multiple drawings

3 REPLIES 3
Reply
Message 1 of 4
Joshlieu
744 Views, 3 Replies

VBA /LISP Routine to export mtext from multiple drawings

I am new to CAD automation (LISP/VBA) but was wondering if someone could point me in the right direction...

We store a "Bill of Materials" list as an MText in many drawings. I will ultimately use this list in excel. Here's what I need to do:
-Select the Mtext in a drawing which contains the string "Bill of Materials"
-Write the contents of the Mtext to a text file

-repeat the process for every drawing in a particular folder, each time appending the text to the bottom of the text file.

any help would be totally appreciated!!!

Thanks

josh
3 REPLIES 3
Message 2 of 4
Hallex
in reply to: Joshlieu

This will get you started
Just change initial folder name for Browser
and name of existing text file
This is the VBA project - you can easily
rewrite it on Lisp
And also check all references accordingly to your
Acad configuration before

~'J'~
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 3 of 4
Joshlieu
in reply to: Joshlieu

Thanks a bunch!
Message 4 of 4
Hallex
in reply to: Joshlieu

You're welcome

~'J'~
_____________________________________
C6309D9E0751D165D0934D0621DFF27919

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost