+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Forum Newbie
    Computer Details
    AGove4123Sonnnnn's Computer Details
    Operating System:
    Windows 7
    Using
    AutoCAD 2011
    Join Date
    Jan 2014
    Posts
    4

    Default Selection Within a Block

    Registered forum members do not see this ad.

    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?


    EDIT:
    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
    getboundingbox....blahblahblah
    Last edited by AGove4123Sonnnnn; 7th Jan 2014 at 08:51 pm. Reason: Solution Reached

Similar Threads

  1. block selection by attribute value
    By Campa150 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 8th Nov 2013, 05:30 pm
  2. listbox selection - insert block
    By Matsui21 in forum AutoLISP, Visual LISP & DCL
    Replies: 35
    Last Post: 16th Mar 2012, 02:27 pm
  3. How to remove a block from the block selection list
    By salmonrose in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 26th Jan 2010, 08:55 pm
  4. Block Selection
    By stevesfr in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 4th Jul 2009, 06:01 pm
  5. block selection
    By mirozav in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 6th Nov 2005, 08:21 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts