Help Creating a complex Script Corel X5

Hi guys

I´m trying to make a script, to draw automaticaly this kind of thing (attached corel x5).
I want to make a dialog box where i can put the measures:
Length, Width and heigth
And get as result this (Attached corel x5).
For each measure it gives me a different result (draw).
Can you help me?

Thanks in advance.
Att.
Emerson Lacerda