create a user input form to generate parts

can someone provide a generic "template" form with theseinput parameters to build a simple part?
need to offset the front plane,
sketch a rectangle,
extrude,
then sketch again on the right plane.
can this be done or is this wishfull thinking??

thanks!SolidworksApi macros