Yes, that Filter isn't working (probably because other owners, like Layers, are derived from Group), so I had to check the type in the for loop. I forgot to remove that line.
On Tue, Jan 14, 2014 at 8:48 AM, Eugen Sares <[email protected]> wrote: > Thanks, guys, that's it! > > Steven, in that code example, is Filter("#Group") not working? Why check > again for the type of the collection elements in the for loop? > Best, > Eugen > > > ------ Originalnachricht ------ > Von: "Stephen Blair" <[email protected]> > An: [email protected] > Gesendet: 14.01.2014 14:21:31 > Betreff: Re: getting all groups of an object > > > Here's one way > http://xsisupport.com/2010/12/30/finding-groups-for-an-object/ > > > > On Tue, Jan 14, 2014 at 8:08 AM, Eugen Sares <[email protected]>wrote: > >> Hi, thought I ask here first: >> in scripting, how can I get a collection of all the groups that a >> particular object is in? Is there a direct way or do I have to traverse all >> groups in the model, and check if the object is inside? >> Thanks, >> Eugen >> >> >> ------------------------------ >> <http://www.avast..com/> >> >> Diese E-Mail ist frei von Viren und Malware, denn der avast! >> Antivirus<http://www.avast.com/>Schutz ist aktiv. >> >> > > > ------------------------------ > <http://www.avast.com/> > > Diese E-Mail ist frei von Viren und Malware, denn der avast! > Antivirus<http://www.avast.com/>Schutz ist aktiv. > >

