Posted by kaisar kibria on October 08, 2003 at 03:01:44:
In Reply to: Re: AUTOLISP QUESTION posted by sanaarfi on July 05, 2002 at 00:40:25:
At 1st u open the file in Notepad
(defun c:seltxt (/ a2 b2 L1 L2)
(prompt "Select Target Text") (terpri)
(setq a2 (entsel))
(setq b2 (entget (car a2)))
(setq L1 (assoc 7 b2))
(setq L2 (cdr L1))
(command "style" L2 """""""""""""")
Above one is a sample LISP program.
U have to findout whis is the command here.
You see seltxt is the comman to exicute the lisp file.
Which word after (defun c: and before (/ ......) . ok?
Now u have to load the lisp file in Autocad.
Give command : appload
and browse the lisp file and click load button.
Now you write in Autocad command prompt seltxt
Command : syltxt and go on.
ArchitectureWeek Digital Design Tools Department Architecture Search |