Custom Property - Macro to add simple part number to files

Hi

Does anyone have any ideas of how I can do the below task in order of below.

  1. select a folder of files
  2. Add a custom property for part number
  3. Insert a simple part number (e.g. P00001)
  4. Update and increment the part number for every file in the folder?

Can this be done using Task Scheduler, or is there a Macro available to do this.

Regards Dee

SolidworksApi/macros