Dear tesak,
Thanks!
Your tip exactly fulfills my needs.
The only problem is that it works when I have cuboid. When I have cylidner, for example, I receive the message "Object doesn't support this property or method".
Do you have any ideas how to cope with this?
Regards,
Janusz