明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 396|回复: 2

[提问] 自定义快捷键 这么写 哪里错了?

  [复制链接]
发表于 2023-7-5 17:20 | 显示全部楼层 |阅读模式
10明经币
(defun LWWTCQH  (/ )
    (LWWCSH)
    (if (not(tblsearch "ltype" "dashed")) ( make_dash )   )
        (if (not(tblsearch "ltype" "DOTE")) ( make_dote)   )
    (setq tcxh 1 tcmc '() tcys '() tcxx '() tcdy '()  qhtc '()  zrtc '() )


   ( LWWwenbenNH )
   (while
      (setq lst4 (assoc ( itoa tcxh ) lwwbzctlst ))
          (setq lst5   (nth 0 (cdr  lst4) ))
      (setq tcmc(nth 0 lst5) tcys (atoi (nth 1 lst5))  tcxx(nth 2 lst5)  tcdy(atoi(nth 3 lst5)) qhtc(nth 4 lst5)  zrtc(nth 5 lst5) )
          
        (eval
          (read
            (strcat
              "(defun c:"
              qhtc
              "()  (vl-cmdf \"clayer\" "
                  tcmc
                   "(princ))" )))
         (setq   tcxh  (1+ tcxh)  )
    )
(princ)
)

(LWWTCQH)

附件: 您需要 登录 才可以下载或查看,没有账号?注册
 楼主| 发表于 2023-7-5 17:40 | 显示全部楼层
函数功能是读取文本 中自定义图层快捷键 按相应快捷键切换至对应图层  目前看来是箭头方框处有问题
回复

使用道具 举报

发表于 2023-11-7 09:04 | 显示全部楼层
用反应器,效果更好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-3 04:45 , Processed in 0.304367 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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