明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1198|回复: 2

请教高手:选择集的应用程序是这样吗?

[复制链接]
发表于 2006-11-4 17:15:00 | 显示全部楼层 |阅读模式

假如上一步骤画一直线,图元名设为en1,再画一圆,图元名设为en2,

将两者添加到同一个选择集sec中,程序如下:

……

 (setq  sec  en1)

 (ssadd   en2  sec)

运行后好像sec中不含en2,不行啊,哪位高手请指导指导,急用!!!!

谢谢谢………………

 楼主| 发表于 2006-11-4 18:22:00 | 显示全部楼层

但像我上面的两句程序那样,程序不会报错啊!!

高手帮忙………………

发表于 2006-11-4 20:12:00 | 显示全部楼层

Set e1 to the name of the first entity in drawing:

Command: (setq e1 (entnext))

<Entity name: 1d62d60>

Set ss to a null selection set:

Command: (setq ss (ssadd))

<Selection set: 2>

The following command adds the e1 entity to the selection set referenced by ss:

Command: (ssadd e1 ss)

<Selection set: 2>

Get the entity following e1:

Command: (setq e2 (entnext e1))

<Entity name: 1d62d68>

Add e2 to the ss entity:

Command: (ssadd e2 ss)

<Selection set: 2>

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

本版积分规则

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

GMT+8, 2025-6-21 04:17 , Processed in 0.149412 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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