Message 1 of 7
It is done in the part doc, but why does the error occur in the assembly doc?

Not applicable
04-06-2020
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sub RemoveAllModelAnnotations()
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument
Dim oCompDef As ComponentDefinition
Set oCompDef = oDoc.ComponentDefinition
Do While oCompDef.ModelAnnotations.Count > 0
oCompDef.ModelAnnotations.Item(oCompDef.ModelAnnotations.Count).Delete
Loop
End Sub