filtering selection sets
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
filtering selection sets
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization

Author Message
William Ogle
Guest





Posted: Thu Aug 25, 2005 4:10 pm    Post subject: filtering selection sets Reply with quote

I figure i am missing something obvious, but there is something i can't
figure out when filtering selection sets.

I often filter a selection set retrieved using a polygon, when i do, it is
easy to filter, such as this:
(setq ss1 (ssget "WP" ptlist (list (cons 0 "INSERT") (cons 2 rcount))))

However, if i prompt a user for a selection set, and want to reuse it over
and over, usually to count stuff, i can't filter an existing selection set
using:
(setq ss1 (ssget ss_bom (list (cons 2 fibspanlabel))))

I have this workaround, which hasn't caused any problems yet:
(command "select" ss_bom "")
(setq ss1 (ssget "p" (list (cons 2 fibspanlabel))))

I know there is a simpler and more professional way to do this, any one know
how?

I know how to step through the sset, look at each entity and ssadd it to a
second set, but i know acad has an easier way of doing it.


Thanks, wm

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB