Message 1 of 5
edit TitleBlock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I'm trying to edit the titleblockdefinition "test" (the third definition in list) in my drawing, but the code below always opens the first titleblockdefinition in the list of drawing resources. Where's my mistake?
Private Sub changetitleblocktext()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oTitleBlock As TitleBlockDefinition
Set oTitleBlock = oDoc.TitleBlockDefinitions.Item("test")
Dim oSketch As DrawingSketch
Call oTitleBlock.Edit(oSketch)
'.......
Call oTitleBlock.ExitEdit(True)
End Sub
R. Krieg
RKW Solutions
www.rkw-solutions.com