Custom Parametric Primitive

Hi I want to create a custom mesh object that can be changed via some parameters on the data panel.

I sort of know how to create the custom mesh object, but I don’t know how to create the custom property or make the mesh update when the property is changed.

Could some one point me in the right direction for this if it’s possible.

Cheers.

In the text editor in blender there is a menu item for templates that includes one for a custom mesh addon. That’s a good place to start

Maybe this can be of some use for you: