Jump to content

Filtering GROUPD to a selection set


wimal

Recommended Posts

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.

Link to comment
Share on other sites

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))

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...