Auto-insert of Diesel string

Discussion in 'AutoCAD' started by CLR, Jul 31, 2003.

  1. CLR

    CLR Guest

    Hi All.......I tried this post in another group and got no
    response.....maybe somebody here can help, please.........

    I have need to insert a string of Diesel code by just pushing a button on a
    toolbar. Iknow how to set up the button, and how to code in the macro, but
    as soon as the macro seemy my "Dollar sign" leading off my Diesel string, it
    just shuts down. I've tried various characters infront of the Dollarsign
    but to no avail......if I leave the Dollarsign out, it reads the string
    correctly..........my code presently starts off something like this:

    rtext;D;$(getvar,"dwgname");

    Any help to get it to "read" the Dollarsign would be appreciated, or another
    way to get the Diesel string into the drawing "automatically".

    Vaya con Dios,
    Chuck, CABGx3
     
    CLR, Jul 31, 2003
    #1
  2. For diesel the syntax would be $(getvar,dwgname)

    Martin
     
    Martin Shoemaker, Aug 1, 2003
    #2
  3. You could try either a double back-slash(\\) or a single forward slash
    (/) as the delimiter in paths.

    I really don't understand what you're trying to do. I can't speak for
    2004, but up to 2002 rtext was a full Autocad only function -- at least
    it doesn't work on the LT2002 I run here -- so you should have lisp
    available. Why does this need to be diesel?


    Martin
     
    Martin Shoemaker, Aug 3, 2003
    #3
  4. CLR

    R. Wink Guest

    Seems that I read somewhere that commands that access the DB directly need to be enclosed in
    parentheses as in (rtext;D;$M=$(getvar,"dwgprefix"). In this, of course, I defer to Paul as he has
    a much better handle on code than I.
    R. Wink
     
    R. Wink, Aug 4, 2003
    #4
  5. CLR

    CLR Guest

    I've tried various combinations of your suggested quotes around the entire
    expression, and Martin's suggested slash and still cant get there.......the
    macro just won't get past the backslash it finds in the path.......I need to
    be able to change the backslash to another character for that "wait for user
    input" function.......

    Thanks much to both of you for your trying......

    Vaya con Dios,
    Chuck, CABGx3
     
    CLR, Aug 4, 2003
    #5
  6. CLR

    john Guest

    Purely of the top of my head - would altering the value of TEXTEVAL
    affect this?

    John B

    johnbogie btinternet.com
    Put the "at" in the gap.
     
    john, Aug 5, 2003
    #6
  7. CLR

    CLR Guest

    Doesn't seem to.......I dunno what TEXTEVAL does, but I changed it from the
    0 default to 1 (the only option) and didn't see any change in the operation
    of the macro.....still stopped on the $ and/or waited for input on the \

    Thanks for suggesting tho......

    Vaya con Dios,
    Chuck, CABGx3
     
    CLR, Aug 5, 2003
    #7
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.