
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I don't understand creating selection lists
(setq ss (ssget "X" '((0 . "INSERT") (66 . 1)))
sl (sslength ss)
So you have a selection list of all the blocks in the dwg with attributes.
Some of the blocks have tags "CIRCUIT" and "TCIRCUIT" and "SCIRCUIT"
These tags contain values like "1" "2" "MS3" etc
I would like to create a new list containing all the blocks with those 3 tags
containing a value "2" for example.
So I assume you have to work through the "SS" list 3 times collecting the blocks
containing the target values and then append them into a new list.
Then run your main program using that new list. If I run my main program having manually
selected the blocks I want it works fine. So I assume if I create a new list
with just the blocks I want that will solve the problem.
I don't want to have to manually select the blocks because I could miss some and they are difficult
to find on a cluttered dwg. Any help to understand lists would be much appreciated.
Solved! Go to Solution.