Choose the same part in assembly
Select the macro to the same parts in assembly
What's your question?
Perhaps you are looking for a method to select one part (either in the tree or in the graphics area) and have it automatically select all instances of that part? See if the solution in this thread will help: Select all instances of same part in an Assembly? How?
Retrieving data ...