It is better if you could upload an example of what you try to achieve.
You can use variables in Designer Script.
e.g
Width1 = 50dip
pnl01.Width = Width1
pnl02.Width = Width1
' or
' pnl02.Width = pnl01.Width
Let say you want to add a gap between 2 views, you can write:
gap = 5dip
pnl02.Left = pnl01.Right + gap
To preview the layout for the script, you have to click the Run button.
Let say you want to spread 5 buttons horizontally, you can calculate the width of the button by subtract the total gap and divide by the number of views
gap + button1.width + gap + button2.width + gap + button3.width + gap + button4.width + gap + button5.width + gap
5 x button width
6 x gap
gap = 10dip
Button1.Width = ( 100%x - (6* gap) ) / 5
If there's a way to save the size/positions of the views
Sure the position and size defined in the script are saved inside the layout file.
If you want to iterate a common layout then you may consider using CustomListView.