Using "\X" in AutoLISP routine

Discussion in 'AutoCAD' started by ben_chowdhary, Jan 17, 2005.

  1. I am currently using AutoCAD 2004. I want to add a dimension to a drawing using a LISP routine. The dimension needs to be on two line, above and below the dimension line.

    The LISP rounte has the "\X" command in the file, but the "\" character is missing in the drawing when the LISP routine is run.

    The following is in the LISP file:
    (command "DIM""VERTICAL"" 427.45, 390"" 427.45, 316.5"" 432.45, 352.5""VISION PANEL CENTRE HEIGHT \X FROM BOTTOM OF PANEL = 1500""EXIT")

    But only the following appears in the text override box in the drawing:

    "VISION PANEL CENTRE HEIGHT X FROM BOTTOM OF PANEL = 1500"

    Can someone tell me what is going wrong?

    Thanks,

    Ben
     
    ben_chowdhary, Jan 17, 2005
    #1
  2. ben_chowdhary

    Jimmy D Guest

    Hi Ben,

    You should use a double \\ to make it work:

    (command "DIM""VERTICAL"" 427.45, 390"" 427.45, 316.5"" 432.45, 352.5""VISION PANEL CENTRE HEIGHT \\X FROM BOTTOM OF PANEL = 1500""EXIT")


    Jim
     
    Jimmy D, Jan 17, 2005
    #2
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.