只是个雏型
- (defun C:test ()
- (setq ss (ssget '((0 . "LWPOLYLINE") (90 . 4)))
- nn (sslength ss)
- )
- (while (setq ee (ssname ss (setq nn (1- nn))))
- (setq pts (cdr (reverse (acet-geom-pline-point-list ee nil)))
- pa (car pts)
- pb (cadr pts)
- pc (caddr pts)
- pd (last pts)
- )
- (Command "_dimaligned" pa pc Pause)
- (Command "_dimaligned" pb pd Pause)
- )
- )
|