ssget筛选器
谁能告诉我一个关于Ssget过滤器的好教程吗。主要是如何使用(-4。“例子:
E15、E1、E24。。。我认识你很长时间了,有点像这样。
(ssget "X" '((2 . "E15)))
但我不确定如何在多种情况下做到这一点。
虽然它可能看起来像这样,但它什么也不返回。
(setq ss (ssget "X" '((-4 . "<OR")(-4 . "<AND")(2 . "E14")(2 . "E15")(2 . "E1")
(2 . "E21")(2 . "L25")(2 . "E24")(2 . "E23")
(2 . "E8")(2 . "E18")(2 . "F16")(2 . "E21")
(2 . "F18")(2 . "E12")(2 . "L24")(2 . "M3")
(2 . "M11")(2 . "P15")(2 . "P14")(2 . "P17")
(2 . "A1")(2 . "A3")(2 . "A6")(2 . "EA7")(-4 . "AND>")(-4 . "OR>")))) 检查http://www.afralisp.net/autolisp/tutorials/selection-set-filters.php 我得到了这个,但我会看看网站谢谢。
Error: Page not found
AfraLISP has changed!
Oops! Something went wrong. Either a link youclicked didn't work, or you typed something funny in your browser'saddress bar or more likely, you're using an old link. Please bear withus while AfraLISP is redeveloped - some content has moved.
You might like to try looking for the page you want by starting back at the site homepage or by using the navigation bar, above. Alternatively, you could try the search box (top right) or the site map.
All the original AfraLISP content is still available online so ifthere is some content we haven't got round to updating yet, you'll findit in the AfraLISP Archive.
If you still can't find what you're looking for (as U2 might say), you might like to use the contact form to tell us where we're going wrong.
Apologies for the inconvenience.
谢谢,我找到了。
问题是(-4.”和“)它使它寻找符合所有标准的块。
(setq ss (ssget "X" '((-4 . "<OR")(-4 . "<AND")(2 . "E14")(2 . "E15")(2 . "E1")
(2 . "E21")(2 . "L25")(2 . "E24")(2 . "E23")
(2 . "E8")(2 . "E18")(2 . "F16")(2 . "E21")
(2 . "F18")(2 . "E12")(2 . "L24")(2 . "M3")
(2 . "M11")(2 . "P15")(2 . "P14")(2 . "P17")
(2 . "A1")(2 . "A3")(2 . "A6")(2 . "EA7")(-4 . "AND>")(-4 . "OR>"))))
效果很好。
谢谢 我认为这就是问题所在。谢谢你的帮助。 我想,当我们讨论这个话题时,有人知道如果x上的比例因子为负,是否可以(41“-*”)选择它们吗
这没什么大不了的,但最好只选择x上有负值的块。因此我可以添加一个计数器)如果不可能的话,我就不需要了。 如果你是指块的x因子,我认为这是不可能的,因为它是一个真正的负值。
你想完成什么? 当人们镜像块时,它会将块更改为向后看,因为X比例因子为负。这只是把他们变回积极的一面。现在,它选择所有符合条件的块,这样我的块计数将包含所有具有+和-值的块。如果我只能让它通过-值,那么我的计数器将是准确的,但正如我所说的,如果它是一个痛苦的。。。。 由于可以将通配符匹配与选择集过滤器列表字符串一起使用,因此可以将块名称合并到单个通配符模式中:
(ssget "_X" '((0 . "INSERT") (2 . "E14,E15,E1 ... ")))
(ssget“X”((0.“插入”)(-4.) 我完全忘记了更少。
(哇,有一天。)
我真的需要使用VISUAL LISP,我计划很快。将查看该文档,谢谢。
更新-
我都成功了,谢谢大家。
页:
[1]
2