Hope it will help you…
https://forum.dynamobim.com/t/how-do-i-get-the-top-surface-of-the-elements-and-the-outline-of-the-difference/26965/5?u=_vijay