Is there any way to add the FileName as well as other file properties to the list?
Please see pic attached
I understand Orest. I was not able to add it to the dropdown for Value/Text Expression but you see that the Evaluated Value is indeed the file name text in text. I was able to add the syntax to the drop down under file name (using edit list) then copy-paste it to the other column and it would evaluate correctly but I don't see the reason for this. You can see from my previous screenshot you get many useful options from the sheet. Just link your title block text to what you want.
I only added the following screen shot to show you what I was able to do from the part. Don't pay any (or much) attention to it.
Try clicking "Edit list" (just above & right of your arrow and adding your properties' names to this list.
If you need to share this with others, then I suggest copying to a network share and have everyone repoint their System Options>File Locations>Custom property file path to this location.
I hope this helps.
The "Edit list" is about Property Name drop down list.
It could be altered by text file (C:\ProgramData\SOLIDWORKS\SOLIDWORKS 2015\lang\english\properties.txt)
I guess the FileName parameter must be retrieved somehow since I can do it in BOM.
I don't think it is possible to add custom values to the standard "Value/Text Expression" (it's hard coded)
If you have any global variables in the Equations, it will show there.
If you use the "Edit list" you can add property names, not values to the pull down menu (Kevin, please correct me if I am wrong)
The other alternate is to use Property Tab Builder and you can create your own list and add properties (more options)
At least I just want to set my file name to my drawing title block so I would not do it manually. In my case I have Filename even to Partnumber. I came to SW after Inventor, it has much more parameters democracy so trying to find out what SW is capable in this area.
Have you tried using Property Tab builder?
It's much more easier and convenient.
Another option is using a macro
I will try it
Thank you for advice
If you want to add the file name to your title block do it in the drawing and link it. The file name option is available from the drop down there.
If for some reason you want it in your part properties you can use the following syntax.
Choice #1 maybe going to work I will try it.
Choice #2 definitely does not work in my case since I can retrieve only parameters available at drop down list. I do not have File name in my list and if I would type value in exact format as on your pic it would be treated as text. So that was my question how to add it to that list. I can retrieve the File name in BOM so parameter existing and question is how to retrieve it in required spot.
Yes, the title block has File Name in the list and can be retrieves there.
Your trick with File Properties works great and there is a use in that.
Let say Company wants Part Number as custom property named "PartNo" for example.
Part Number is equal to to File Name.
I am quite lazy to type it manually so I can use the File Name in Title block and make a part template
where their "PartNo" will be equal to "$PRP:"SW-File Name" and both me and company will be satisfied
in all further parts and I will spare myself from errors in the part number (unless the file name would be wrong)
Thank you for great advice!
I new you had a good reason
Yes, I spoiled by Inventor and I wish I had some automation in SW projects exceeding couple dozen parts,
so if I will make a drawing I would have some auto data filled on it.
Your trick works the same way for Author, Comments, Title and probably some etc.
Retrieving data ...