This is a code block from my award winning BlockUtility static class.. But you would want to create the selectionFilter according to your own requirements – hence I have not used a static class for getting the selection filter. Apologies for the lack of readability in my code. The blog just kills the formatting.
What do we want to do?
- We want to prompt the user to select some objects on the screen.
- And we want to select only certain objects using a selection filter and
- we want to place all the filtered objects in a selection set.
And Viola! You now have your selection set which you can use to further read and manipulate Autocad objects!
Leave a Reply