sorry ~ many ask ~
i made this code too
this is boolean code about selected face
i tested many times
but i dont know error problem well
pls teach again ~~~
bigbox = selection[1]
faces_sel=polyOp.getFaceSelection selection[1];
polyOp.detachFaces selection[1] faces_sel delete:false asNode:true name:"newface"
smallface = copy $newface ;delete $newface
converttopoly smallface
polyop.extrudefaces smallface (polyop.getfaceselection smallface) (-100)
snapMode.active=false
ProBoolean.createBooleanObjects bigbox smallface 2 0 0
ProBoolean.SetPlanarEdgeRemoval bigbox 3