明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2328|回复: 14

请一问题有待解决!

  [复制链接]
发表于 2004-3-4 15:50:00 | 显示全部楼层 |阅读模式
问题:


                                                 已知相交的两线段,知道一条的实体名.只知到这些.怎么求得另一实体名???


                                                         3q!!

发表于 2004-3-4 17:13:00 | 显示全部楼层
本帖最后由 作者 于 2004-3-5 7:53:19 编辑

(setq ENT (car (entsel)))
(setq DXF10 (cdr (assoc 10 (entget ENT))))
(setq DXF11 (cdr (assoc 11 (entget ENT))))
(setq SS (ssget "F" (list DXF10 DXF11) '((0 . "LINE"))))
(command "SELECT" SS "R" ENT "")
(setq SS (ssget "P"))
 楼主| 发表于 2004-3-4 18:18:00 | 显示全部楼层
请解释"F"的用法??


谢谢
发表于 2004-3-4 20:26:00 | 显示全部楼层
The following table shows examples of calls to ssget:

SSGET Examples

Function call

Effect

(setq pt1 '(0.0 0.0 0.0)

pt2 '(5.0 5.0 0.0)

pt3 '(4.0 1.0 0.0)

pt4 '(2.0 6.0 0.0))

Sets pt1, pt2, pt3, and pt4 to point values

(setq ss1 (ssget))

Asks the user for a general object selection and places those items in a selection set

(setq ss1 (ssget "P"))

Creates a selection set from the most recently created selection set

(setq ss1 (ssget "L"))

Creates a selection set of the last object added to the database that is visible on the screen

(setq ss1 (ssget pt2))

Creates a selection set of an object passing through point (5,5)

(setq ss1 (ssget "W" pt1 pt2))

Creates a selection set of the objects inside the window from (0,0) to (5,5)

(setq ss1 (ssget "F"
(list pt2 pt3 pt4)))

Creates a selection set of the objects crossing the fence and defined by the points (5,5), (4,1), and (2,6)

(setq ss1 (ssget "WP"
(list pt1 pt2 pt3)))

Creates a selection set of the objects inside the polygon defined by the points (0,0), (5,5), and (4,1)

(setq ss1 (ssget "X"))

发表于 2004-3-4 21:07:00 | 显示全部楼层

(ssget)

要求您使用一般的图形选取方法

(ssget P)

选择您最近所选取的图形

(ssget L)

选择您最后加入数据库内的图元

(ssget I)

建立在 Implied 选择模式下所选取图元的选择集。(PICKFIRST 有效时)

(ssget '(2 2))

选择经过 2, 2 这点的图元(ssget “W'(0 0) '(5 5))│选择在 0, 0 5, 5 这个窗口内的图元

(ssget w'(0 0)'(5 5))

选择在0,05,5这个视窗内的图素

(ssget C'(0 0) '(1 1))

选择凡是接触或在0, 01, 1这个窗口内的图元

(ssget X)

建立在数据库中所有图元的选择集

(ssget Xfilter-list)

选择符合 filter-list 条件的图元

(ssget filter-list)

要求用户作一般的图元选择, 但只有符合 filterlist 条件的图元可加入选择组

(ssget Pfilter-list)

建立符合 filter-list 条件且最近被选取图元的选择组

发表于 2004-3-4 21:20:00 | 显示全部楼层
楼上的表格挺不错。哪儿能弄到?
 楼主| 发表于 2004-3-4 21:20:00 | 显示全部楼层

setq ss1 (ssget "W" pt1 pt2))

Creates a selection set of the objects inside the window from (0,0) to (5,5)

如果pt1,pt2同是水平或垂直 而组不成框选时,能成吗?? 对不起,我上网的机子没有cad无法实验
发表于 2004-3-5 08:10:00 | 显示全部楼层
成,不过返回的都是nil,因为框内没有面积,所以不能框住任何一个对象。。。就 象你用鼠标在屏幕上选择一样(直接选要后点的X坐标大于前点的X坐标,即要使选择框为实线)
 楼主| 发表于 2004-3-5 13:56:00 | 显示全部楼层
na 怎么办·???????????
发表于 2004-3-5 14:13:00 | 显示全部楼层
你不会用“c”啊


(ssget “c" ptlist 。。。)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-10-1 10:19 , Processed in 0.190601 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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