- (defun C:zddw(/ col mn mode pt1 pt1-2 pt2 pt2-2)
-
- (setq mn (zdwkgj (ssget)))
- (setq pt1 (car mn))
- (setq pt2 (cadr mn))
- (setq pt1-2 (list (car pt2) (cadr pt1) 0.0))
- (setq pt2-2 (list (car pt1) (cadr pt2) 0.0))
-
- (setq mode (getvar "OSMODE"))
- (setvar "OSMODE" 0)
-
- (command "DIMLINEAR" pt1 pt2-2 "@ -50,0")
-
- (command "DIMLINEAR" pt2 pt2-2 "@ 0,50")
-
- (setvar "OSMODE" mode)
-
- )
- (defun C:zddn(/ col mn mode pt1 pt1-2 pt2 pt2-2)
-
- (setq mn (zdwkgj (ssget)))
- (setq pt1 (car mn))
- (setq pt2 (cadr mn))
- (setq pt1-2 (list (car pt2) (cadr pt1) 0.0))
- (setq pt2-2 (list (car pt1) (cadr pt2) 0.0))
-
- (setq mode (getvar "OSMODE"))
- (setvar "OSMODE" 0)
-
- (command "DIMLINEAR" pt1 pt2-2 "@ 100,0.3")
-
- (command "DIMLINEAR" pt2 pt2-2 "@ 0,-100")
-
- (setvar "OSMODE" mode)
-
- )
|