- ;应加加入判断
- (defun C:cgc()
- ;控制AutoCAD 是否回显提示和输入。
- (setvar "cmdecho" 0)
- (vl-load-com)
- (setq e(entsel"\n请在图面上选择高程注记"))
- (setq th(entget e1 '("*")));读出所选图元的数据库数据及非图形数据
- (if (assoc 1 th)
- (progn
- (setq d (cdr (assoc 1 th)))
- (setq wz(getpoint"\n请在图面指定高程点位置"))
- (command "DRAWGCD" "" wz d "" )
- )
- )
- (prin1)
- )
- (prompt "\n :云秀浪静提示你!成功加载文字采集高程点程序(命令:cgc),有问题请联系云秀浪静,QQ:735800335")
- (prin1)
|