I am trying to setup a drawing template to populate a field with the name of the last folder, of the directory where the file is saved.
Example. If the file directory is:
C:\Program Files\SolidWorks Corp\SolidWorks\Samples\Part123.SLDDRW
I want the field to be updated with "Samples"
Not the entire file path.
Is this possible?
Hi,
i don't think that this is possible. SWX makes no difference between the other folders/sub-folders and the complete path. And i don't think that this will be very useful either...
It's a good habit to store the drawings right beside the component files, so you'll be able to open them up easily (from the components). And therefor it will be also necessary to give them equal names (except the file extension).
I store the complete path and file name in my sheet format.