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

VBA /LISP Routine to export mtext from multiple drawings

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community