Slab Break

Hi guys

I am facing problem in zoning and am wonder if there is way to cut slabs, already found a code but it’s only working for slabs in rectangular shapes but I tried it in more complicated shapes and doesn’t work, So, is there any way to do that ?.

That the code

r

Regards