Convert . (dot) to _ (underscores) in File name

I am using a macro to export .igs files to a specific location. We'd like to take the existing part #'s which are for example 900.3680.001.01 and export the file name as 900_3680_001_01 instead.

I'm sure this is easy, I'm just not coming across it in my head at the moment.

Thanks,

Jeremiah

SolidworksApi macros