Thanks Siongqiong DAN
On Fri, Sep 27, 2013 at 7:42 AM, Songqiong Yang <[email protected] > wrote: > Yes, we'll log a defect. > > As workaround, you can use "FindObjects" command with the specific ClassID > of the "UserGroup". > e.g.: > from win32com.client import constants as c > Application.NewScene("", "") > Application.SelectObj("light", "", "") > oGroup = Application.CreateGroup("", "", "") > # Get the class id of the user group > classID = XSIUtils.DataRepository.GetIdentifier( oGroup, c.siObjectCLSID ) > Application.LogMessage(classID) > Application.LogMessage( Application.FindObjects("", classID ).GetAsText() ) > > Thanks, > Siongqiong > From: [email protected] [mailto: > [email protected]] On Behalf Of Dan Yargici > Sent: Friday, September 27, 2013 1:58 AM > To: [email protected] > Subject: Re: siGroupID identifier bug? > > Yeah, must be a bug I guess. Easy to circumvent but odd nonetheless. > > Thanks Stephen. > > DAN > > > On Thu, Sep 26, 2013 at 6:38 PM, Stephen Blair <[email protected] > <mailto:[email protected]>> wrote: > Looks like a problem with FindObjects2 to me. > > IsClassOf( c.siGroupID ) returns True for all groups, but FindObjects2 > finds only the Associated Model group. And if you delete the light, > FindObjects2 doesn't find any group at all. > > > > On Thu, Sep 26, 2013 at 12:57 PM, Dan Yargici <[email protected] > <mailto:[email protected]>> wrote: > Hello all. > > When you run: > > from win32com.client import constants as c > Application.NewScene("", "") > Application.SelectObj("light", "", "") > Application.CreateGroup("", "", "") > Application.LogMessage(Application.FindObjects2(c.siGroupID).GetAsText()) > > You'll see that FindObjects2 returns only the "Associated Models" groups > that are nested under lights and no others. It seems on closer inspection > that they have different ClassIDs. > > If it were the other way round and it returned only groups that were *not* > "Associated Models" groups, then *perhaps* I could understand and accept > it, but the way it is now seems crazy, no? > > > DAN > > -------------------------- > To unsubscribe: mail [email protected]<mailto: > [email protected]> with subject "unsubscribe" and > reply to the confirmation email. > > > -------------------------- > To unsubscribe: mail [email protected]<mailto: > [email protected]> with subject "unsubscribe" and > reply to the confirmation email. > > > -------------------------- > To unsubscribe: mail [email protected] with subject > "unsubscribe" and reply to the confirmation email. >
-------------------------- To unsubscribe: mail [email protected] with subject "unsubscribe" and reply to the confirmation email.

