Wall parts >> If we exclude one part >> Material take-off using Dynamo is not correct!

I can see that by excluding one portion of a wall part from a wall. the outputs related to parts and volumes of materials becomes incorrect using Dynamo. It is kind; the part that have been excluded in Revit still exist in Dynamo… However the output of Revit materiel take off is correct even though it has excluded any parts which have 0 thickness automatically. Any advice or comment about that ?

Many thanks…