Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
As the title states I need to convert this to lettering *if* possible.
(defun c:BDX (/ ss s1 n1 N2 fld1)
(defun *error* (msg)
(setvar "filedia" fld1)
(and msg(not (wcmatch (strcase msg)"*CANCEL*,*QUIT*,*BREAK*,*EXIT*"))
(princ (strcat "\nError: " msg))
)
(setvar "cmdecho" 1)
(princ)
)
(princ "select object")
(setq ss (ssget ":S")
S1 (getstring "\nEnter Prefix: ")
n1 (getint "\nEnter Suffix: ")
)
(setq fld1 1)
(setvar "filedia" 0)
(while ss
(SETQ N2 (ITOA N1))
(setvar "cmdecho" 0)
(command "_.dxfout" (strcat "u:/v/batch-dxf/" S1 N2 ".dxf") "e" ss "" "v" "2013" "16")
(princ "select object")
(setq ss (ssget ":S") ;if
n1 (+ n1 1)
)
) ;_ end of while
(setvar "filedia" 1)
(princ)
) ;_ end of defun
Solved! Go to Solution.