Very confuse about RhinoDoc.ActiveDoc.Objects.Find(id); RhinoDocument.Objects.Find(id); areathey same?

i am writing a C# component to filter textobjects and breps. i am quite confuse about rhinoDoc and RhinoDocument. It looks they both works fine. is there any documentation about such things?

  var  ro = RhinoDoc.ActiveDoc.Objects.Find(id);

  var ro = RhinoDocument.Objects.Find(id);

ids.gh (2.7 KB)

You should always do this. On the Mac, there really isn’t an “active” document. So you always want to use the document handed to you by Grasshopper.

– Dale

Thanks!Now I know.