乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: cadman6735

[编程交流] nentsel, entget, ssget questio

[复制链接]

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:25:11 | 显示全部楼层
You can use as much stuff together for ssget.
eg.
  1. (ssget "_X" '((0 . "LINE,ARC,*POLYLINE") (8 . "PIZZA")))
This will select all lines, arcs and *polylines (works on same filtering principals as wcmatch) that reside on layer PIZZA.
回复

使用道具 举报

23

主题

117

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
123
发表于 2022-7-6 11:29:22 | 显示全部楼层
 
 
 
 
Thanks for the Reference Manual this will be very handy:thumbsup:
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:32:30 | 显示全部楼层
 
You're welcome. You can also type out a function in VLIDE, highlight and click on the help button and it will give you a full explanation of it. :wink:
回复

使用道具 举报

23

主题

117

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
123
发表于 2022-7-6 11:35:27 | 显示全部楼层
 
 
 
 
BAM, thank you
 
Last question, I promise  (at least in this thread and for today)
 
 
What is the * for before polyline?  Why does the poly get the * and none of the other elements?
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:41:05 | 显示全部楼层
To select LWPolylines and Polylines. As I mentioned, look at wcmatch.:wink:
回复

使用道具 举报

23

主题

117

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
123
发表于 2022-7-6 11:41:56 | 显示全部楼层
 
 
 
Ok, I'm sorry, one more question since I am here and thinking about it.
 
(wcmatch, wild card match, I am reading about it now, thanks for the point)
 
 
My question:
(ssget "_x" '((0 . "line,arc,*polyline")
 
 
The "_x" will select all elements in my drawing and the (0 . "line,arc") will filter out the lines and arcs from this selection set.
 
So ssget is nothing more than a selection set filter? (end of story?)
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:47:29 | 显示全部楼层
entsel/nentsel/nentselp are single entity object selection.
ssget is a multiple entity selection with very extensive filter options.
回复

使用道具 举报

23

主题

117

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
123
发表于 2022-7-6 11:51:29 | 显示全部楼层
 
 
Alan
 
Thank you for helping me understand the ssget function, the user guide and for introducing me to wcmatch.
 
 
My main confusion came from me trying to use (ssget) the same way as (entget) but for multiple objects...  I am new to all this lisp stuff, so getting my head around it and swimming in too much information confusses me.
 
 
 
Our discussion and the following web site helped me understand, maybe it will help another lost mind too.
 
http://rkmcswain.blogspot.com/2008/08/exploring-autolisp-ssget-function-part.html
 
 
http://rkmcswain.blogspot.com/2008/08/exploring-autolisp-ssget-function-part_20.html
 
 
 
 
Thanks again
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:52:11 | 显示全部楼层
happy to help.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-6 17:15 , Processed in 0.486528 second(s), 68 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表