Macro to reduce Image Quality for all parts and assemblies in a folder.

Hello,

Im new to macro's and im trying to reduce "shaded and draft quality HLR/HLV resolution" in our parts and assemblies.

I have tried combining a couple of macro's to open a specific folder and changing the image quality.

I got it working for a opened part, but it wont open a specific folder to do it for all the files in this folder.

Can somebody pls point me in the right direction to get it working?

I attached the macro i am using

SolidworksApi macros