Creating a macro to reload the basemap

Hello

I would like to update my basemaps stored in a PDM, I specify without the mycad tools or my pdm tools.
Has anyone ever made a macro in this style?
I don't know too much about VBA, but retouching the macro for filenames or paths is something I can do. Here is my basic data.

  • everything is stored in a PDM, even the plan templates.
  • The pdm is under C: so the single path for all users, the templates and basemap are in the same folder.
  • The template (drwdot) calls 5 different basemaps (SLDDRT).
  • The file names don't change, I update them in the PDM.
  • SolidWorks 2022 for now.

In manual I do property on the basemap, I stay on the selected basemap, I reload and it updates the cartridge.

The idea is to create a macro that does this automatically (reload and save) and then integrate that macro into a PDM workflow to do the bulk update. And that way I can cumulate with my PDF generation in the flow as well.

I don't know if this is possible or if someone has done it, thank you in advance for your help.