Jump to content

Getting attribute count from an AutoCAD Block


muck

Recommended Posts

I am using AutoCAD 2010.

I am trying to get the number of attributes in an AutoCAD Block.

I am using the following code:

 

For Each elem In ThisDrawing.ModelSpace

If elem.EntityName = "AcDbBlockReference" Then

If elem.Name = "SPREAD SHEET INFO" Then

array1 = elem.GetAttributes

'attribct = UBound(array1())

c = 0

For k = 0 To UBound(array1())

Debug.Print array1(k)

c = c + 1

Next k

End If

End If

Next

 

No luck with this code, Problem with UBound (array1()).

So how do I get the number of attributes in a AutoCAD block?

Thank you,

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...