Message 1 of 2
Select all occurrences of component

Not applicable
03-05-2004
12:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Take any assembly (or weldment), which could conceivably contain other assemblies/weldments. I need a fast way to select every occurrence of a given filename. I currently have a recursive sub that looks through the entire tree structure at every ComponentOccurrence whose .Definition.Document.FullFileName property is the one I'm looking for, and although it does work, I'm sure it's going to take way too long on larger assemblies.
I was just looking at the AllLeafOccurrences property, but the help isn't too clear on that one, so I'm not sure if that's what I need.
--------------------------------------------------------------------------------
Brian R. Iwaskewycz
Senior Mechanical Engineer
PA Transformer Technology, Inc.