Hi @nia98bim,
If the columns are axis-aligned the solution @sovitek can be a good approach I think.
But if the columns are rotated/slanted the Dynamo graph in the link below might help you in the right direction (this is more related to the info provided by @jacob.small).
https://forum.dynamobim.com/t/cross-section-of-slanted-columns-are-rotated/89347/9?u=mjb-online