The customer requires that the objects were hung on the walls entirely on the whole floor or selectively according to a given condition.
And when moving walls or openings, that objects must correctly rebuilt their contents.
The element based on the ACCESSORY object is best suited for this.
But you can hang it on the wall only through the menu "Wall accessories" and only by clicking the mouse.
How I can you assign an ACCESSORY object to the walls using your own add-on?
To understand your objective just a little better, what are the given conditions that determine where the objects/elements are to be located on the walls? Some distance from the end, centered between openings...?
Yes. But it could still be important to know what the given conditions are. I assume that the first step in making an Add-on is to model a examples of the intended results. Then sort of reverse engineer the code to generate them.