PS : in fact you can also make it with line commands in the terminal
(sorry Vaclav for not having thinked about it ;-) ).
But for that you have to become familiar with Python commands, but this
is maybe in fact not more complicated than Yade source files for a
newcomer. Search about "Python" in the site or the mailing list for
examples of such commands.