File name into a drawings sheet... with slight changes.

Hi,

I guess this question is in the right place...

Our file names are as follows:

     XX1234_ABC.SLDPRT

     XX7890_UVWXYZ_ABC.SLDPRT

In the drawing sheet we'd like the following to be automatically displayed:

     XX1234/ABC

     XX7890/UVWXYZ/ABC

so that's removing the extension (which I guess would be easy) but also replace the _ with /'s

Easy to do?

One further question, where can I learn more about writing and understanding API's? I'd like to get more involved in this side of SolidWorks.

Edit: I see that there are plenty of other discussions about learning about API's

Many thanks,

M

SolidworksApi macros