明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: huanbaonan

[求助]遇到了一个很怪的事情

  [复制链接]
发表于 2007-10-3 00:49 | 显示全部楼层
<pre class="prog_in">帮助里面的一段源程序:</pre><pre class="prog_in">(defun C:TBOX ( / textent tb ll ur ul lr)</pre><pre class="prog_in">  (setq textent (car (entsel "\nSelect text: ")))</pre><pre class="prog_in">  (command "ucs" "Object" textent)</pre><pre class="prog_in">  (setq tb (textbox (list  (cons -1 textent)))</pre><pre class="prog_in">        ll (car tb)</pre><pre class="prog_in">        ur  (cadr tb)</pre><pre class="prog_in">        ul  (list (car ll) (cadr ur))</pre><pre class="prog_in">        lr (list (car ur) (cadr ll))</pre><pre class="prog_in">  )</pre><pre class="prog_in">  (command "pline" ll lr ur ul "Close")</pre><pre class="prog_in">  (command "ucs" "p")</pre><pre class="prog_in">  (princ)</pre><pre class="prog_in_end">)</pre>
发表于 2007-10-30 23:25 | 显示全部楼层
常常会因为捕捉没关,导致程序运行的结果错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-18 06:26 , Processed in 0.199272 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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