List selection

Hi,

How should I write in the code for a list (inside the macro), so that when I select a part in it appear as in example??

When i select, appear the part in blue!

SolidworksApi macros