Insert Block as Individual Objects

When inserting a block into Rhino one has the option to insert the block as individual objects. I can’t find a way to do this with code (python). Is there a function in Rhinoscript or Rhino Common? Importing would do the same thing for me but cannot locate a function either.

A little more clarity: I have a Rhino file with grouped objects. I want to import the file into the existing document and keep the grouped objects intact. The AddBlock command inserts it as a block and when you explode it to eliminate the block the grouping structure is also exploded.

Thanks for the help.

Eric

I found this post (Thanks Clement) that seem to work well with a little formatting so I could pass in the file I wanted to import:

https://discourse.mcneel.com/t/import-3dm-to-point/46022/2

Here is the code. Still would like to see other examples if more valuable.

Eric

import Rhino
import rhinoscriptsyntax as rs

def InsertFile(insFile):
    # insert options
    file =chr(34) + r"" + insFile + "" + chr(34)
    point = Rhino.Geometry.Point3d(0, 0, 0)
    scale = 1.0
    rotation = 0.0
    
    # command
    cmd = "_-Insert _File=Yes _LinkMode=_Embed {0} ".format(file)
    cmd += "Objects _Enter {0} {1} {2}".format(point, scale, rotation)
    rc = rs.Command(cmd, False)
    
    rs.ZoomSelected()
    rs.UnselectAllObjects()

file = "C:\PDP Work\Sample.3dm"

InsertFile(file)