马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
- ;;; By Jimmy Bergmark
- ;;; Copyright (C) 1997-2005 JTB World, All Rights Reserved
- ;;; Website: [url]www.jtbworld.com[/url]
- ;;; E-mail: [email]info@jtbworld.com[/email]
- ;;;
- ;;; Change the hatch base point on one or many hatches
- ;;;
- (defun c:hatchbase (/ oldos oldsn oldcmdecho i ent)
- (setq oldos (getvar "osmode"))
- (setq oldsn (getvar "snapbase"))
- (setq oldcmdecho (getvar "cmdecho"))
- (setvar "osmode" 47)
- (princ "\nSelect point you wish Hatch(s) to start from...")
- (command "._snapbase" pause)
- (princ "\nSelect Hatch(s) to adjust snapbase")
- (if (not (setq ss (ssget)))
- (alert "\n No Entities selected..... Please try again.")
- (progn
- (setq i 0)
- (while (setq ent (ssname ss i))
- (command "._hatchedit" ent "" "" "" "")
- (setq i (1+ i))
- )
- )
- )
- (setvar "snapbase" oldsn)
- (setvar "osmode" oldos)
- (setvar "cmdecho" oldcmdecho)
- (princ)
- )
|