But if I understand it correctly, this macro is for hatching a face.
What I am looking for is to change an already existing hatch.
Thank you anyways
The example gives you an idea of ISketchHatch interface. You can then user its properties to set pattern, scale and layer. Have a look at 2018 SOLIDWORKS API Help - ISketchHatch Interface Members.
Hope this helps.