Maya Commands :
import maya.cmds as cmds
object = cmds.ls(sl=True)
bbox = cmds.exactWorldBoundingBox( object[0])
cmds.curve(d=1,p=[(bbox[0],bbox[4],bbox[5]),(bbox[3],bbox[4],bbox[5]),(bbox[3],bbox[4],bbox[2]),(bbox[0],bbox[4],bbox[2]),(bbox[0],bbox[1],bbox[5]),(bbox[3],bbox[1],bbox[5]),(bbox[3],bbox[1],bbox[2]),(bbox[0],bbox[1],bbox[2])])
Comments