Visual LISP, AutoLISP and General Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
VBA /LISP Routine to export mtext from multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
324 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
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
Re: VBA /LISP Routine to export mtext from multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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'~
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
C6309D9E0751D165D0934D0621DFF27919
Re: VBA /LISP Routine to export mtext from multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-16-2009 07:40 AM in reply to:
Joshlieu
Thanks a bunch!
Re: VBA /LISP Routine to export mtext from multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-16-2009 10:42 AM in reply to:
Joshlieu
You're welcome
~'J'~
~'J'~
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
C6309D9E0751D165D0934D0621DFF27919
