这个CAD LSP出错在哪里?
(defunc:XXXX(/oscebmsssela)(prompt"")(setqos(getvar"osmode")ce(getvar"cmdecho")bm(get...
(defun c:XXXX (/ os ce bm ss se la )
(prompt "")
(setq os (getvar "osmode")
ce (getvar "cmdecho")
bm (getvar "blimpode")
)
(setvar "osmode" 37)
(setq se (getstring "\n input layer name<any key>/select matching object <enter>")
)
(if (= se "")
(progn
(setq la (cdr (assoc '8 (entget (car (entsel "\n select an object to match it"
) ) ) ) ) )
(setq ss (ssget))
(command "copy" ss "" "@" "@")
(command "_change" ss "" "p" "la" la "")
)
(progn
(setq la (getstring "\n enter layer name>"))
(setq ss (ssget))
(command "copy" ss "" "@" "@")
(command "_change" ss "" "p" "la" la "")
)
)
(setvar "osmode" os)
(setvar "cmdecho" ce)
(setvar "blipmode" bm)
(princ)
) 展开
(prompt "")
(setq os (getvar "osmode")
ce (getvar "cmdecho")
bm (getvar "blimpode")
)
(setvar "osmode" 37)
(setq se (getstring "\n input layer name<any key>/select matching object <enter>")
)
(if (= se "")
(progn
(setq la (cdr (assoc '8 (entget (car (entsel "\n select an object to match it"
) ) ) ) ) )
(setq ss (ssget))
(command "copy" ss "" "@" "@")
(command "_change" ss "" "p" "la" la "")
)
(progn
(setq la (getstring "\n enter layer name>"))
(setq ss (ssget))
(command "copy" ss "" "@" "@")
(command "_change" ss "" "p" "la" la "")
)
)
(setvar "osmode" os)
(setvar "cmdecho" ce)
(setvar "blipmode" bm)
(princ)
) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询