乐筑天下

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

[编程交流] Filter List - Variables

[复制链接]

28

主题

118

帖子

95

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
136
发表于 2022-7-5 17:01:24 | 显示全部楼层 |阅读模式
All,
 
I am trying to make the values 25.5 and 26.5 variables, in the filter list example below:
 

[code](-4 . ">")(40 . 25.5)(-4 . "
回复

使用道具 举报

5

主题

1334

帖子

1410

银币

限制会员

铜币
-20
发表于 2022-7-5 17:20:14 | 显示全部楼层
Maybe you missed ""...
 
  1. (-4 . "")(40 . 25.5)(-4 . "")
回复

使用道具 举报

28

主题

118

帖子

95

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
136
发表于 2022-7-5 17:33:37 | 显示全部楼层
 
 
Thanks marko_ribar,
 
I got it now - didn't need "AND". It just needed me to wake up!!
 

[code](setq s (ssget "_X"       (list  (cons 0 "VIEWPORT")  (cons -4 ">")  (cons 40 lower)  (cons -4 "
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 17:48:18 | 显示全部楼层
For completeness, note that only the expressions which contain variable data need to be quoted, the other expressions can be literals:
  1. (ssget "_X" (list '(0 . "VIEWPORT") '(-4 . ">") (cons 40 lower) '(-4 . "See here for more information.
回复

使用道具 举报

28

主题

118

帖子

95

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
136
发表于 2022-7-5 17:55:13 | 显示全部楼层
 
 
Thanks Lee,
 
Great tutorial!
 
#Enlightened
 
Cheers
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 18:11:02 | 显示全部楼层
Thank you - I'm glad you found it useful!
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-13 09:48 , Processed in 0.366087 second(s), 64 queries .

© 2020-2025 乐筑天下

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