Title Block Collection

Title Block Collection

Anonymous
Not applicable
238 Views
2 Replies
Message 1 of 3

Title Block Collection

Anonymous
Not applicable
I'm having a bit of trouble getting all the Title Block names from the Title Block Definition. Does anybody have the code to do this?

Thx in Advance

AllenG
0 Likes
239 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Are you looking to get the names of all title block definitions in a
drawing? If so, this should do it:

Sub TitleBlockNames()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oTitleBlockDef As TitleBlockDefinition

For Each oTitleBlockDef In oDoc.TitleBlockDefinitions
Debug.Print oTitleBlockDef.Name
Next
End Sub

Sanjay-


wrote in message news:5013127@discussion.autodesk.com...
I'm having a bit of trouble getting all the Title Block names from the Title
Block Definition. Does anybody have the code to do this?

Thx in Advance

AllenG
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank You Sanjay, I had a extra "S'" in my code.
Everything works great now.

-AllenG
0 Likes