马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (defun c:tt ()
- (if (and (setq e (car (xdrx_entsel
- "\n拾取一个曲线<退出>:"
- '((0 . "*LINE,ARC,ELLIPSE,CIRCLE"))
- )
- )
- )
- (setq g (xdge::constructor e))
- (setq box (xdge::getpropertyvalue g "boundblock"))
- (setq box1 (xdge::getpropertyvalue g "orthoboundblock"))
- (setq pts1 (xdge::getpropertyvalue box "getMinMaxPoints"))
- (setq pts2 (xdge::getpropertyvalue box1 "getMinMaxPoints"))
- )
- (progn (setq ln (xdrx_line_make pts1)
- boxs (xdrx_entity_box ln)
- )
- (xdrx_polyline_make boxs t)
- (xdrx_setpropertyvalue (entlast) "color" 2)
- (xdrx_entity_delete ln)
- (setq ln (xdrx_line_make pts2)
- boxs (xdrx_entity_box ln)
- )
- (xdrx_polyline_make boxs t)
- (xdrx_setpropertyvalue (entlast) "color" 1)
- (xdrx_entity_delete ln)
- )
- )
- (xdge::free g box box1)
- (princ)
- )
|