Automatic property creation


Hey Guys!
I have many components in a model (more than 300) and I have to make property for each one of them. The problem is that creating properties and rename them by components and assign them to components takes to many time. Names of the components are the item numbers, so I want to keep them and don't rename them. I have already figured out that in Utility browser there's a function, named 'auto property creation', which renames the properties to the names of the components if they are assigned before.
Do you have any idea how could I create so many properties and assign them to components in a few easy steps or do you guys have script or any other solution to solve this problem?
Thanks for answers in advance!
Best regards,
Tüki