Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a lot of drawings where I need to change the TitleBlock and I als need to delete a few old TitleBlocks from the drawing.
To change the TitleBlock for a single idw I have the following working code but it needs to through all open idw's.
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Dim sSheetName As String
For Each oSheet In oDoc.Sheets
oSheet.Activate
'If TitleBlock is A, switch to B
If ActiveSheet.TitleBlock="A" Then
ActiveSheet.TitleBlock = "B"
Else
'do nothing
End If
Next
Tobias
The Netherlands
Inventor Pro 2025, Vault Pro 2025, AutoCad Electrical 2025.
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
The Netherlands
Inventor Pro 2025, Vault Pro 2025, AutoCad Electrical 2025.
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
Solved! Go to Solution.