Default custom properties for imported parts

Can anyone help me.

I want to have default custom properties which are automatic added when importing a STEP file for example.

For normal parts, I can add them in the template. Then when using the template I have the custom properties in the part.

But when importing, I can choose the same template, but after opening the custom properties are empty.

How can I do this?