Dynamic destructable mesh size possible

Is it possible for players to specify a size of a cuboid/box during play time, and spawn a dynamic mesh matching the description? Ideally the cell size count of the dynamic mesh would vary proportionally to the size.

The application of this is to create player-specified walls of a castle which can be destroyed by siege engines such as catapults