Specific Grouping Use Case

 From:  Michael Gibson
7464.13 In reply to 7464.11 
Hi Philip - your script is invalid JavaScript code because it's missing the closing bracket for the if statement.

You've got an open bracket here shown in bold red:

var objects = moi.geometryDatabase.getSelectedObjects();
if (objects.length > 0) {
var name = objects.item(0).name;
moi.geometryDatabase.selectNamed(name);


So to go along with that open bracket you need a close bracket to complete the if statement, like in the attached file.

Once you add the closing bracket your script should then work as you wanted it to.

EDIT: scott beat me to it! :)

- Michael
Attachments: