Macro to pick the first 5 characters of the file name

how to write a solidworks macro to pick the first 5 characters of the file name and assign it to a custom property

SolidworksApi/macros