• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Visual LISP, AutoLISP and General Customization

    Reply
    Member
    Posts: 5
    Registered: ‎11-13-2009

    VBA /LISP Routine to export mtext from multiple drawings

    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
    Please use plain text.
    *Expert Elite*
    Hallex
    Posts: 1,334
    Registered: ‎10-08-2008

    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
    Please use plain text.
    Member
    Posts: 5
    Registered: ‎11-13-2009

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

    11-16-2009 07:40 AM in reply to: Joshlieu
    Thanks a bunch!
    Please use plain text.
    *Expert Elite*
    Hallex
    Posts: 1,334
    Registered: ‎10-08-2008

    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
    Please use plain text.