Generate part based on dimensions input into pop up box.

Hi All,

I don't have any experience with programming so could someone produce the code for the below scenario please.

I would like a code to open a input box asking for the dimensions of a part when a general part is inserted in an assembly.

Eg; If I insert a cylinder, I would like the box to ask for the height and diameter. Then generate the component.

Cheers

SolidworksApi macros