I am hoping for some help creating a lisp.
I have a bunch of pdf's I am making into dwg's. Most of the time it won't create text it creates vectors that will not convert to text. As a result I have a whole bunch of different pipe/duct/pressure text I have to retype.
Typically all I have to do is change the numbers and keep the text consistent.
Below is a lisp routine with two lisp that do ducts and gas pressures.
(defun c:T5T (/ mytext1 mytext2 textString p1 *w1* *w2* *w3* )
(setq *w1* "(E) "
*w2* "\" ("
*w3* " CFH)"
)
(setq mytext1 (getstring "\nEnter the size: "))
(setq mytext2 (getstring "\nEnter the CFM: "))
(setq textString (strcat *w1* mytext1 *w2* mytext2 *w3*))
(setq p1 (getpoint "\nSpecify insertion point: "))
; Insert the text
(command "_text" p1 "0" textString)
; Erase all selected objects
; if (setq ss (ssget (list (cons 0 "~Text") (cons 0 "~MText"))))
; (command "_erase" ss)
; )
(princ)
)
Sorry for some reason my t4t lisp won't quote. It just hang the preview\save. Below is that attached lsp with both routines.
Right now I am doing it with
words
(w1 w2 etc)
And
Questions
(mytext1 mytext2)
T4T was my first list I had to do
T5T was the second set.
By the time I am done I may have 15 different ones for various labels.
Does anyone have a better suggestion on how to go about this?