Automated part generation

Hello everyone,

I am a student engineer looking to create an automated part generation system. I want to be able to create a bearing and the bore automatically on catia v5. I would like to have a table or an interface allowing me to fill in the dimensions and thus create the part automatically but I don't know how to do it, and which tools (programming) I can use. 

Thank you very much in advance

Translated with www.DeepL.com/Translator (free version)