Does not exist in GroupTable

Can someone take a look at this code and tell me why it fails in V6? It runs fine in V5. Is there a bug, or did something change with regard to the grouping methods?

import rhinoscriptsyntax as rs

name = rs.AddGroup()
object_ids = rs.GetObjects("Select objects to add to group")
if object_ids:
    rs.AddObjectsToGroup(object_ids, name)
    if rs.IsGroup(name):
        print name
        objects = rs.ObjectsByGroup(name, True)

Here is a screen shot of it failing in my script (every script with ObjectsByGroup has this issue):


Thanks,

Dan

Hi @DanBayn,

Here there a file that does along with this?

– Dale

Hi Dale,

I can just make a few objects for the code sample and have it fail.

There’s something different between V5 and V6, as this works in V5. Here it is in V5:

I will attach a small file with some grouped curves that will not select using the sample script.

ObjectByGroup test.3dm (1.7 MB)

Thanks,

Dan

Hi Dan,

I’ve logged the issue - thanks for reporting

https://mcneel.myjetbrains.com/youtrack/issue/RH-41673

– Dale

No problem.

Have a good weekend.

RH-41673 is fixed in the latest WIP

Tested, and it’s working as it should.

Thanks,

Dan