How to group objects programmatically?

The Grouping Objects entry in Pan Help is silent on how to do this in a procedure and I can’t find a command that looks remotely like GroupObjects.

What’s the secret?


Grouping objects is one thing that cannot currently be done in a procedure, sorry.