How to create SW Macro to create amacro to fill header fields from properties of the 3D-file?

Hello every one
I want to ask you some quetions about solidworks Macros
to create amacro to fill header fields from properties of the 3D-file, and from current date

SolidworksApi/macros