Can anyone tell me why I can't use this in Ortho mode?

Discussion in 'AutoCAD' started by Albert Giuliano, Aug 5, 2003.

  1. Can anyone tell me why I can't use this in Ortho mode?

    Original written by Kenny Poong
    ;; Creates a suite of numbers & insert into point by user defined

    (defun C:TextNumber ( / oldecho tmp numHt numValStr)
    (setq oldecho (getvar "cmdecho"))
    (setvar "cmdecho" 0)
    (if (not numVal) (setq numVal 1))
    (if (not numInc) (setq numInc 1))
    (setq tmp (getint (strcat "\nStarting number <" (itoa numVal) ">: ")))
    (if tmp (setq numVal tmp))
    (setq numValStr (itoa numVal))
    (setq tmp (getint (strcat "\nIncrement by <" (itoa numInc) ">: ")))
    (if tmp (setq numInc tmp))
    (if (= 0.0 (cdr (assoc 40 (tblsearch "style" (getvar "textstyle")))))
    (progn
    (initget (+ 1 2))
    (setq numHt (getdist "\nText height: "))
    )
    );end if
    (while (setq pikPnt (getpoint (strcat "\nInsertion point for "
    numValStr
    ": ")))
    (command "._text" "_mc" pikPnt)
    (if numHt (command numHt))
    (command "" numValStr)
    (setq
    numVal (+ numVal numInc)
    numValStr (itoa numVal)
    )
    );end while
    (setvar "cmdecho" oldecho)
    (princ)
    );end C:TextNumber
     
    Albert Giuliano, Aug 5, 2003
    #1
  2. Albert Giuliano

    Devin Guest

    I loaded it up and set ortho on and it worked for me.

    Don't know why it won't work on your system. Maybe another reason? What's
    it doing?

    Devin
     
    Devin, Aug 5, 2003
    #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.