Thank you for your reply.

I was trying to run a parametric sweep using this code, but when I tried to enter a variable, the code didn't read this variable. For example, instead of writing 'radius_bottom=1' I wrote it 'radius_bottom=r' It happened also for zspan. The code accepts only numbers. I have attached a photo to clarify.

How can I fix that please to run a parametric sweep?