Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Member
Joshlieu
Posts: 7
Registered: ‎11-13-2009
Message 1 of 4 (468 Views)

VBA /LISP Routine to export mtext from multiple drawings

468 Views, 3 Replies
11-13-2009 03:15 PM
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
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 4 (468 Views)

Re: VBA /LISP Routine to export mtext from multiple drawings

11-14-2009 11:20 AM 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
Active Member
Joshlieu
Posts: 7
Registered: ‎11-13-2009
Message 3 of 4 (468 Views)

Re: VBA /LISP Routine to export mtext from multiple drawings

11-16-2009 07:40 AM in reply to: Joshlieu
Thanks a bunch!
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 4 of 4 (468 Views)

Re: VBA /LISP Routine to export mtext from multiple drawings

11-16-2009 10:42 AM in reply to: Joshlieu
You're welcome

~'J'~
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.