Results 1 to 1 of 1

Thread: How i can sweep an BlockReference and find entities without explode

  1. #1
    Member
    Join Date
    2013-03
    Location
    Brasil - São Paulo
    Posts
    4
    Login to Give a bone
    0

    Post How i can sweep an BlockReference and find entities without explode

    How i can sweep an BlockReference and find entities without explode, really I've one point in the block and i want find your position, but I not want use dynamic block and nor use of the base point.

    I have code with AcadBlock , I need it with acadBlockReference, will be that somebody can help me?



    Function GetEntityInBlockRef(ByRef varPick As Variant, BlockEntity As AcadBlock) As Boolean
    Dim elem As Object
    Dim Blkref As AcadBlockReference
    Dim BlK As AcadBlock
    On Error GoTo Err_GetEntityInBlockRef


    For I = 0 To BlK.count
    Set elem = BlK.Item(I)
    If StrComp(elem.EntityName, "AcDbBlockReference", 1) = 0 Then
    Set Blkref = elem
    varPick(0) = Blkref.InsertionPoint(0)
    varPick(1) = Blkref.InsertionPoint(1)
    varPick(2) = Blkref.InsertionPoint(2)
    GetEntityInBlockRef = True
    End If
    Debug.Print elem.EntityName
    Next I
    Exit Function

    Err_GetEntityInBlockRef:
    GetEntityInBlockRef = False
    Exit Function
    End Function
    Attached Images Attached Images

Similar Threads

  1. DynamicBlock a look inside a BlockReference
    By Marcio Cartacho in forum Dot Net API
    Replies: 1
    Last Post: 2011-07-20, 09:40 PM
  2. How to Delete Multiple Instances of a BlockReference?
    By brad.moon126662 in forum VBA/COM Interop
    Replies: 2
    Last Post: 2007-10-02, 02:36 PM
  3. Count BlockReference entities
    By axa2001ro in forum VBA/COM Interop
    Replies: 4
    Last Post: 2006-04-21, 01:54 PM
  4. Explode Proxy Entities
    By minhtct in forum AutoCAD General
    Replies: 4
    Last Post: 2005-12-14, 11:32 PM

Posting Permissions

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