Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I try to make a script who find and select in panel, all part who don't have body.
I have find this code, but last line "selectmultiple" doesn't work.
Someone can tell me why please?
Thank you very much
Public Sub selectAllNoBody()
Dim ocPartDocs As ObjectCollection
Set ocPartDocs = ThisApplication.TransientObjects.CreateObjectCollection
For Each obj In ThisApplication.ActiveDocument.AllReferencedDocuments
If TypeOf obj Is PartDocument Then
Dim oPartdoc As PartDocument
Set oPartdoc = obj
If oPartdoc.ComponentDefinition.MassProperties.Volume = 0 Then
ocPartDocs.Add oPartdoc
Debug.Print oPartdoc.FullDocumentName
'ThisApplication.ActiveDocument.SelectSet.Select oPartdoc
End If
End If
Next
Call ThisApplication.ActiveDocument.SelectSet.SelectMultiple(ocPartDocs)
End Sub
Solved! Go to Solution.