first of all, which relation do YOu want to achieve?
Material in use into file name, or vice versa?
Some string in the filename should be mapped into the material?
And second allow me to say my personal opinion!
I think that no relation between any property and especially a material should be mappe into the file name.
What if some proeprties will change?
Will You then change all filenames?
And what if, a similar part already exists and now will get the same material.
Believe me, the simple use of proeprties and the great capabilities from ST9 and ST10 to let them show in explorer too, to search for them and to use them in the same way as any filename could be used makes in much more flexible, easy to use and will never bring You into the situation with an equal filename at different file loactions.
My advice here will be: Use properties rather than a single filename!
thank you for a quick reply.
Yes, you have a right.
What I want to achieve is to automate the process.
As you can see on the PM some of the fields are empty.
I would like to have a tool which could help me for example copy the document name into the Title.
Easily assign Document Number or Project Name. Maybe some Batch command to assign DN or PN to multiple documents in one go?
It seams demanding job creating macro - I personally can't do it.
see a simple example of one folder with example files and take a look onto the Material Column.
Besides that You can show any proeprty You like to see in explorer.
And not only show, You also can search for them and filter those columns according to Your needs.
Believe me, this is better than havin a filename!
the problem is that we are using PM fields for creating DWGs data tables - drawings are taking all data from PM.
So all fields need to be properly fulfilled before creating the DWGs.
looks like as we have written our last post at the same time and You have clicked the send button some view seconds earlier.
OK, now we are talking about title and not longer about material, which in fact doesn't make any difference.
What You want to do is possible with the Property Manager itself.
Just select a complete column and copy the filename to the according column You want it to be.
Now You might say, OK, BUT then there is not only the filename but also the ending, the file type.
So just do a simple search/replace and replace ".par" with "" and ".asm" also with ""
So You can now have Your props where You want them without the need for any additional macro
Yes it is not difficult at all.
And to be honest, I have an old macro (15 years old at least) which will do nearly exactly what @arekkul is asking for:
"To take parts of the filename and map that to certain properties!".
Yes we did this at that time.
But due to the changes in API (32/64 bit) I can not say wether this old stuff will work nowdays without any problems.