明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2623|回复: 5

如何在vlisp实现Qleader->Setting->Annotation->None?

[复制链接]
发表于 2002-10-15 11:28:00 | 显示全部楼层 |阅读模式
如何用vlisp实现Qleader->Setting->Annotation->None?
发表于 2002-10-16 11:09:00 | 显示全部楼层

I suffered this problem for such a long time...

there must be a variable to control this, but I can't find it. So I write another routine to replace it although it is not as good as the original one.
 楼主| 发表于 2002-10-17 05:33:00 | 显示全部楼层

use following vlisp code: (command "leader" pt1 pt2 "" "" "n")

发表于 2002-10-17 08:24:00 | 显示全部楼层

Myleader.lsp

if the number of points you request are more than 3, you have to modified the code.
发表于 2002-10-17 08:41:00 | 显示全部楼层

Sorry, that's rubbish, it can be so simple...

(Defun CD(/ p1 p2 p3)
         (setq ortho (getvar "ORTHOMODE"))
         (setvar "ORTHOMODE" 0)
         (setq p1 (getpoint "\nFirst Point:"))
         (setq p2 (getpoint p1 "\nSecond Point: "))
         (grdraw p1 p2 7)
         (setvar "ORTHOMODE" 1)
         (setq p3 (getpoint p2 "\nNext Point: "))
           (cond ((/= p3 nil)
                 (VL-CmdF "leader" p1 p2 p3 "" "" "n"))
               ((= p3 nil)
                (VL-CmdF "leader" p1 p2 "" "" "n"))
           );cond
         (VL-CmdF "redraw")
        (setvar "ORTHOMODE" ortho)
       (princ)
);
发表于 2002-10-18 08:48:00 | 显示全部楼层

It is better now...

(defun C:MLD()
  (command "leader" pause pause pause "" "" "n"); for 3 points
  (princ)
)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-25 19:37 , Processed in 0.186902 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表