Map an original filename as the DIR number in Import without using file properties.

Dec 19, 2017 at 01:07 AM|1.4k Views

I want to derive the filename and map to the document number field in the import dialog without the requirement of creating, mapping and entering a custom file property? Is there an attribute that is usable by the import that maps the original filename?

Alert Moderator

Add comment

Thank you for your answers. I was hoping there was some method to capture the filename without the use of a custom property. I wanted to avoid the overhead of having to create a property in legacy files that have been stored offline. I will contact the vendor and share any positive developments.

Information for others that may read this thread...

In my case, I use the following xml to capture the value in the NUMBER property in Solidworks. The value is case sensitive and we have many groups working together an so I have included multiple values and use the first non empty value for the mapping.

In Solidworks itself, the property is written as $PRP:"SW-File Name" this is an environmental variable the evaluates as the filename.

For groups of multiple files, I use the SolidWorks Task Scheduler>Custom Properties Update utility to apply the $PRP:"SW-File Name" value to all files in a folder.