Actually js was the solution, thanks.
function bang() {
//create new bpatcher in the parentpatcher
var myobj = this.patcher.parentpatcher.newobject("bpatcher");
myobj.rect = [300,300,400,400];
//load a patch into the bpatcher
myobj.replace("yourpatch.maxpat");
}