in SolidSolidCutUtils.AddCutBetweenSolids(doc, ele, ele2) ele is supposed to be the element to be cut which is the wall. So simply replace ele and ele2:
SolidSolidCutUtils.AddCutBetweenSolids(doc, ele2, ele)
in SolidSolidCutUtils.AddCutBetweenSolids(doc, ele, ele2) ele is supposed to be the element to be cut which is the wall. So simply replace ele and ele2:
SolidSolidCutUtils.AddCutBetweenSolids(doc, ele2, ele)