 - (defun c:tt ()
- (setq dd (getvar "offsetdist"))
- (setq ds (getdist (strcat "\n输入偏移距离<" (rtos dd) ">:")))
- (if (= ds nil)
- (setq ds dd)
- )
- (setvar "PeditAccept" 1)
- (if (setq ss (ssget (car (list nil (print "请选择要同时偏移的对象: ")))))
- (progn
- (command "Pedit" "M" ss "" "j" 0.0 "")
- (setq s1 (entlast)
- pt (vlax-curve-getStartPoint s1)
- )
- (command "offset" ds (list s1 pt) Pause "")
- (command "Chprop" (entlast) "" "La" (Getvar "Clayer") "")
- )
- )
- (princ)
- )
|