Help _"doc" = documentation?

“scriptcontext.doc” doesn’t quite understand this method; is it injecting geometry into the “rhino” document?
scriptcontext.doc = rhinocommondApi inside doc?

Is the following code snippet injecting an object into rhino?:backhand_index_pointing_down:

import scriptcontext as sc
if rc == Rhino.Commands.Result.Success:
    for i in range(0, len(meshes)):
        id = sc.doc.Objects.AddMesh(meshes[i], attributes[i])
            if id != System.Guid.Empty:
                sc.doc.Objects.Select(id, True, True, True)

Your sc.doc means the currently active RhinoDoc indeed.