;;这样可以
(defun c:tt(/ s )
(setq s (ssget "X" '((8 . "dmx")(0 . "*POLYLINE"))))
(setq n (sslength s) m 0)
(command "GCSPZJ" 1 2)
(repeat n
(setq e (ssname s m) m (1+ m))
(command e) ;;;调用等高线注记命令
)
(command)
)
;;这样不可以,出现嵌套超过4层问题,咋办?
(defun c:tt(/ s )
(setq s (ssget "X" '((8 . "dmx")(0 . "*POLYLINE"))))
(setq n (sslength s) m 0)
(repeat n
(setq e (ssname s m) m (1+ m))
(command "GCSPZJ" 1 2 e "")
)
)
;;这样不可以,出现嵌套超过4层问题,咋办?
(defun c:tt(/ s )
(setq s (ssget "X" '((8 . "dmx")(0 . "*POLYLINE"))))
(setq n (sslength s) m 0)
(repeat n
(setq e (ssname s m) m (1+ m))
(command "GCSPZJ" 1 2 e "")
)
)