Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
The selection set of entities combination?
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: The selection set of entities combination? (Read 2450 times)
0 Members and 1 Guest are viewing this topic.
2e4lite
Guest
The selection set of entities combination?
«
on:
March 07, 2014, 03:55:43 AM »
How to Select the entities ,which are the same type、layer、color、Perimeter and area if have in the specified range?
Logged
irneb
Water Moccasin
Posts: 1794
ACad R9-2016, Revit Arch 6-2016
WWW
Re: The selection set of entities combination?
«
Reply #1 on:
March 07, 2014, 05:42:42 AM »
The type/layer/color can very easily be selected using selection filters.
http://www.afralisp.net/autolisp/tutorials/selection-set-filters.php
The perimeter and area might be a different matter. You could do a selection first (using filters for the other properties), then step through it and remove those which do not fall within the rage(s). You can obtain the perimeter/area using various methods: just do a google on autolisp perimeter.
Edit: or even on this site:
http://www.theswamp.org/index.php?topic=22276.msg268230
http://www.theswamp.org/index.php?topic=39773.msg451108
Unfortunately you can't add custom selection filtering like you can in Revit - i.e. introduce a custom function which the select tool asks if the entity is acceptable before adding it to the selection set. That would have been great, but unfortunately not available in AutoCAD, definitely not in AutoLisp.
Logged
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.
CAB
Global Moderator
Seagull
Posts: 10401
Re: The selection set of entities combination?
«
Reply #2 on:
March 07, 2014, 06:22:08 PM »
These are very old but may be of some use.
http://www.theswamp.org/index.php?topic=1915.0
Logged
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.
2e4lite
Guest
Re: The selection set of entities combination?
«
Reply #3 on:
March 09, 2014, 03:26:29 AM »
CAB,
Thanks for your routine,It's good! In this line:(setq ent (car (entsel "\nSelect object to match area & layer."))). I think it will be more efficient in use,if use ssget to Select object In this line.
Logged
CAB
Global Moderator
Seagull
Posts: 10401
Re: The selection set of entities combination?
«
Reply #4 on:
March 09, 2014, 10:48:22 AM »
Feel free to modify for your needs.
Enjoy.
Logged
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
The selection set of entities combination?