wimal Posted July 10, 2018 Posted July 10, 2018 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. Quote
BIGAL Posted July 10, 2018 Posted July 10, 2018 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)) Quote
wimal Posted July 10, 2018 Author Posted July 10, 2018 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 Quote
hanhphuc Posted July 10, 2018 Posted July 10, 2018 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' 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 Quote
Recommended Posts
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.