Thank you. Also i am trying to draw grating along a trapezoid structure. I am not sure how to write a script for that. I know how to define a polygon and draw a plane trapezoid and normal grating using for loop.Do you have any suggestion for scripting this structure. Does array provides an option to create this struture? How to vary the length along the array keeping other parameters same?