Jump to content

Selection Within a Block

Recommended Posts


I need a way to select everything but the centerlines within a block. They extend beyond the part which I hope to find the actual envelope dimensions of. I will then iterate through the remaining parts to find the max/envelope dimensions.


The issue is this block is in a document with many other objects (blocks, lines, points, etc.) so exploding is not ideal as it would be a pain to recollect the parts. Also opening a seperate file is too time consuming, this must be done within the file at hand.


Is this even possible?




Oh! A little drilling, and you can easily and directly access a block within a document, then iterate through them as I mentioned above. No inception-style selection sets needed! Nice.

Looks very roughly like this:


Dim blkTestBlock As AcadBlock

Set blkTestBlock = AutoCAD.Application.ActiveDocument.Blocks("ACT1")

For Each ACADEntity in blkTestBlock

If linetype="Continuous" then


Edited by AGove4123Sonnnnn
Solution Reached

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