Algorithm to determine if a component is in a folder?

Hi,

I am looking for a way to determine if a component (Component2) isin a folder. Is there anyone who has run across a method to dothis??

Thanks in advance

Fredrik


Edit: I solved my problem (this was a part of it) by going aroundit. Would still be interestiong though if it is possible todetermine if the component is in a folder.SolidworksApi macros