This tutorial shows you how to make a simple PCG system which spawns foliage and other ground scatter meshes on the landscape, but not where structures have already been placed.
https://dev.epicgames.com/community/learning/tutorials/qBrV/unreal-engine-crash-course-quickly-populating-a-landscape-with-procedural-content-generation-framework