As part of automation of a few processes in our company, I have been busy generating drawing templates with automated title blocks. I have succeeded in adding the required information in the title block automatically yet I came across one problem I don't really know how to solve.
Our drawings should feature the part's, or assembly's filename in the title block which I have been able to do using the \\\$PRPMODEL:"SW-FileName(FileName)" link. So far so good. However all our filenames feature the revision code at the end of the filename (e.g. Box_profile_1-RevB). The revision in drawings is filled in in our Revision Block. So now the each drawing shows the current revision in the Revision Block as well as in the filename field.
Not a huge problem, yet I would prefer to be able to trim the filename field so that it shows just Box_profile_1 instead of Box_profile_1-RevB.
Is there a way to do this? Preferably without significant programming.
Thanks in advance for any replies on the subject.
SolidworksApi macros