import TXT file with acad formatting

Discussion in 'AutoCAD' started by jfrog, Nov 16, 2004.

  1. jfrog

    jfrog Guest

    This really isn't a LISP issue, but I figured LISP programmers are probably going to have the best handle on this....

    I'm importing a text file into MTEXT, and I want to have some of the text in bold. Since cutting & pasting is easier in MS Word than tediously selecting & bolding in acad, I was wondering if there was a way to embed acad control characters in my TXT file. Here's what I mean:

    I have a paragraph heading that I want to be BOLD in the midst of the text file:

    MATERIALS

    a listing of the mtext in acad shows something like:

    {\fArial|b1|i0|c0|p34; MATERIALS}

    So...of course I tried adding the "{\fArial|b1|i0|c0|p34;" to the front of the text and the "}" behind, and that's how the end result looked...that is,

    {\fArial|b1|i0|c0|p34;MATERIALS} instead of MATERIALS bolded.

    I then tried {\\f since acad interprets 2 backslashes as 1 (or vice versa)

    Is there any way to get it to interpret the control characters as control characters instead of literal text?
     
    jfrog, Nov 16, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.