Jump to content
wimal

Filtering GROUPD to a selection set

Recommended Posts

wimal

In my drawing there are lot of groups. By selecting through a window it can add to a selection set. After that how can I identify groups . I need filter groups in to a new selection set. Please help me.

Share this post


Link to post
Share on other sites
BIGAL

Here is one example from Autodesk forums. Return a list of group names.

 

(setq  doc (vla-get-activedocument (vlax-get-acad-object)))
(vlax-for group (vla-get-groups doc)
(setq return (cons (vla-get-name group) return))
)
(mapcar 'strcase (reverse return))

Share this post


Link to post
Share on other sites
wimal
Here is one example from Autodesk forums. Return a list of group names.

 

(setq  doc (vla-get-activedocument (vlax-get-acad-object)))
(vlax-for group (vla-get-groups doc)
(setq return (cons (vla-get-name group) return))
)
(mapcar 'strcase (reverse return))

 

Thanks Mr Bigal

Share this post


Link to post
Share on other sites
hanhphuc

hi, just to make sure 'ACAD_GROUP' not 'PICKSET' (selection set)?

previous post titled 'group' but at the end solution was using 'selection set' :?

 

my understanding about group 'selection' :unsure:

 

aTr29rD.gif

 

FWIW, Lee Mac's ssget tutorial mentioned regarding Group - 'G'

Although a valid ssget mode string, there is no provision for passing group names as arguments to the ssget function and hence this option is only of use at the command-line during the Select objects prompt.

 

Command: SELECT

Select objects: [b]G[/b]

Enter group name: A
4 found

Select objects:

Command: SELECT

Select objects: [b]G[/b]

Enter group name: B
2 found

Select objects:

Command: SELECT

Select objects: [b]G[/b]

Enter group name: A,B
6 found

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×