Excellent ! ! !
Now to make sure this routine works on all language versions of AutoCAD,
precede all AutoCAD commands with an underscore "_".
To also force the original AutoCAD command to be issued in case another
function undefined the command, precede the command with a period ".".
ie:
(command "_.text" "_j" "_c" pause textht pause start)
Paul
wrote in message news:5375147@discussion.autodesk.com...
Here is the finished code. It works GREAT. The old one I had would mess up
if the ucs wasnt world but this is perfect I got it to only prompt for text
height. Again thanks a million.
;-----------------------------------------------------------------------------
;***************************** seq
******************************************
;*****************************************************************************
;-----------------------------------------------------------------------------
(defun C:seq (/ inc style_tbl style_ht textht start)
;Gets info
(setq start (getint "\nStarting number:")
inc (getint "\nSet Increment value: ")
)
;checks if text height is fixed
(setq style_tbl(tblsearch"style"(getvar"textstyle")))
(setq style_ht(cdr(assoc 40 style_tbl)))
;Starts if text height fixed
;start loop
(if
(zerop style_ht)
(progn
(setq textht (getstring "\Enter Text Height:"))
(while T
(command "text" "j" "c" pause textht pause start)
(setq start (+ start inc))
);End while
);End Progn
(progn
(while T
(command "text" "j" "c" pause pause start)
(setq start (+ start inc))
);End while
);End Progn
);End IF
);End Defun