乐筑天下

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

[编程交流] SSGET - syntax for select enti

[复制链接]

44

主题

139

帖子

95

银币

后起之秀

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

铜币
221
发表于 2022-7-5 19:54:40 | 显示全部楼层 |阅读模式
Hello everyone,
I want to select only polylines in the layer "VP" in a region.
 
Is it possibile using ssget?
 
I've tried with:
  1. (ssget "_C" pnt_A pnt_B '((0 . "LWPOLYLINE") (-4 . "=") (8 . "VP")))
but it doesn't work :/ (i get a nil)
 
Any idea?
 
Thanks, Dennis
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

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

铜币
358
发表于 2022-7-5 20:08:16 | 显示全部楼层
Do the variables pnt_A and pnt_B representing correct coordinates ?
 
Then remove the (-4 . "=") from the codes and try again .
回复

使用道具 举报

44

主题

139

帖子

95

银币

后起之秀

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

铜币
221
发表于 2022-7-5 20:27:39 | 显示全部楼层
You're right, remove (-4 . "=") do the trick!
 
I've read about (-4 . ...) here http://www.lee-mac.com/ssget.html but maybe it's not for this type of argument..
 
Thanks. man )
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

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

铜币
358
发表于 2022-7-5 20:39:19 | 显示全部楼层
You are welcome
 
When you need any information about any function and while you are in Visual Lisp editor , just press ctrl+F1 then write the name of the function to get the help document opened and direct you to the required function , or just highlight the function and press ctrl+F1 .
 
Good Luck .
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:48:19 | 显示全部楼层
You may want to look into "WP" this is a window option but require a predefined point list.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 21:02:49 | 显示全部楼层
 
(-4 . "=") is a Relational Operator, only for use with with group codes containing integer or real values - please refer to Note 1 on my page.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-12 00:55 , Processed in 0.486631 second(s), 64 queries .

© 2020-2025 乐筑天下

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