How to group all generated circles C#

Hello,
i am writing a C# plugin that lets the user create a bunch of circles on a surface (in a loop).
how can i group them together, so that they will be selectable as a group later on?
I can´t find anything in the forum ,the RhinoCommon or on the interweb…

doc.Groups.Add(string groupName, IEnumerable < Guid > guids)

returns the groupindex as an int.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_Tables_GroupTable_Add_3.htm

Blockquote
I can´t find anything in the forum ,the RhinoCommon or on the interweb…

https://www.google.de/search?client=opera&q=create+group+rhinocommon&sourceid=opera&ie=UTF-8&oe=UTF-8
https://developer.rhino3d.com/api/RhinoCommon/search.html?SearchText=group

First results respectivly.

Yes. I got there too. But i dont pick objects by GetObject, i create circles by picking points on a surface.
i have no idea how to get the GUID of these Circles.
tried with .ObjectId…

If you add the circles to the document, you get the guid. If you don’t, you can not group them.

https://developer.rhino3d.com/api/RhinoCommon/html/Overload_Rhino_DocObjects_Tables_ObjectTable_AddCircle.htm

@rgr
Thank you! I got it working.