For a macro that I am writing, I am simply trying to select all the faces of all parts in a product. What I am struggling to understand is why my code will select all the faces of parts, but only one part instance of parts that appear multiple times in the product tree. For example if I have 10 bolts in the product, it is only selecting the faces from one of the bolts.
Any help understanding this would be great!
I've included the simple code I am using to select the faces:
Language = "VBSCRIPT"
Set prdroot = CATIA.ActiveDocument.Product
Set partDoc = CATIA.ActiveDocument
Set objSel = CATIA.ActiveDocument.Selection
objSel.Search "((Topology.CGMFace) & (Topology.CGMFace & Visibility=Shown)),all"