Regarding this "already closed" thread from 2018 https://community.graphisoft.com/t5/Collaboration-with-other/Base-Quantities-with-IFC-export/m-p/257... , with a last comment by @stefan , I wanted to update the features from the IFC 4.0.2.1. schema version regarding IfcPile Base Quantities:
https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/qto_pilebasequantities.htm

And this is how Graphisoft Archicad 28 uses IFC4 RV adding Base Quantities checkbox to publish a Pile

Operating system used: Windows 28.0.3. (3120) INT FULL
David Delgado Vendrell
http://www.daviddelgado.cat
i7-7820HK CPU 2,90GHz 32GB RAM
Triple Monitor 17"+25"+32" Nvidia Geforce GTX 1080
SSD+HDD, Win10 Home - 64 ENG
AC18-AC28 INT/SPA (64-bit, latest build)
Surfing with Archicad since 2013