旋转视图,旋转视口,恢复视图
本帖最后由 ucuc2003 于 2015-9-17 17:55 编辑参考了自贡黄明儒的源码,感谢!
增加了记忆角度功能
;;;恢复视图 by ucuc2003
(defun C:HFST (/ ro_ang)
(setvar "cmdecho" 0)
(princ "恢复视图")
(if (equal (getvar "TILEMODE") 1)
(progn
(command "_.undo" "_group")
(command "_.Plan" "w" "_.ucs" "w")
(command "_.undo" "_end")
)
(princ "\n*请切换到模型空间*")
)
(princ)
)
;;;恢复视图end
修改了下
;;;恢复视图 by ucuc2003
(defun C:HFST (/ ro_ang)
(setvar "cmdecho" 0)
(princ "恢复视图")
(vl-load-com)
(setqacadobject (vlax-get-acad-object)
acaddocument (vla-get-activedocument acadobject))
(if (equal (getvar "TILEMODE") 1)
(progn
(command "_.undo" "_group")
(command "_.Plan" "w" "_.ucs" "w")
(command "_.undo" "_end")
)
(if (= (vla-get-mspace acaddocument) :vlax-false)
(command "mspace" "_.Plan" "w" "_.ucs" "w")
(command "_.Plan" "w" "_.ucs" "w")
)
)
(princ)
)
学习学习,谢谢分享 学习学习,,谢谢分享 http://bbs.mjtd.com/thread-178310-1-1.html
这个比您这个更好用一点,无需选择命令,合并在一起了。
供您参考。 學習學習,謝謝分享 不错的软件 感谢楼主分享~! 很好用啊,感谢感谢
页:
[1]