Using Arbitrary DEM in 2D

Actually, I want to use an arbitrary DEM in a 3D model. I want to use Dummy or Dynamic boundary conditions with 3 layers of non-fluid particles instead of planes, but the problem is that using “addDEM” and “addDEMfluidBox” is not enough to create 3 layers of non-fluid particles for the DEM. Moreover, I think “addBox” can only create a rectangular shape and cannot produce the DEM shape.
I think someone else had this problem before when I read the " DEM in combination with other geometries" in the Application part, but I couldn’t figure out whether you solved the problem or not.