(defun c:xm (/ ss pb dis)
(if
(and (setq ss (ssget))
(progn
(setq pb (car (xdrx_entity_box ss)))
(if
(setq
dis (getdist pb
(if **GlobleDist**
(strcat "\nDistance
(vl-princ-to-string **GlobleDist**)
">: "
)
"\nDistance: "
)
)
)
(setq **GlobleDist** dis)
(setq dis **GlobleDist**)
)
)
)
(vl-cmdf ".move"
ss
""
pb
(polar pb (angle pb (cadr (grread T 15))) dis)
)
)
(princ)
)
(defun c:xs (/ ss pb dis)
(if
(and (setq ss (ssget))
(progn
(setq pb (car (xdrx_entity_box ss)))
(if
(setq
dis (getdist pb
(if **GlobleDist**
(strcat "\nDistance
(vl-princ-to-string **GlobleDist**)
">: "
)
"\nDistance: "
)
)
)
(setq **GlobleDist** dis)
(setq dis **GlobleDist**)
)
)
)
(vl-cmdf ".stretch"
ss
""
pb
(polar pb (angle pb (cadr (grread T 15))) dis)
)
)
(princ)
)