-
Re: Renaming files in PDM Standard, why does Data Card not update?
Prasad Bhonsule Feb 13, 2017 10:02 AM (in response to Jonathan Leeper)Hi Jonathan, how do you have your data card setup for the filename?
Is there a field on the data card that defaults to the filename; eg Part Number? If so that will only update when a file is created not when it is renamed. The default values for any datacard file only apply to new files not making changes to existing files.
This is the same in PDM Professional or Standard.
What you can do in PDM Professional is have programming run to update the file card if you have renamed the file or vice versa rename a file using a value on the datacard.
Hope this helps
Prasad
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Jonathan Leeper Feb 13, 2017 10:58 AM (in response to Prasad Bhonsule)Hi Prasad,
Our "file name" field on the data card is set to "Special value" and file name without extension.
Thank you for your input regarding Pro and Standard.
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Steve Ostrovsky Feb 13, 2017 11:52 AM (in response to Jonathan Leeper)That Special Value is only the Default Value. The way it works is the value is set when the file is added to the vault. To update it after the file has been added, you would have to either manually update it, use a Dispatch script to update it (I've done this a lot), use a custom API tool written or I think you can do it through workflow transitions. Unfortunately for you, I think the only option you'll have is manual since you're in PDM Standard.
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Jonathan Leeper Feb 13, 2017 2:44 PM (in response to Steve Ostrovsky)Thanks Steve. Between what you and and Prasad have written, I have a better understanding of what is happening.
-
-
-
-
Re: Renaming files in PDM Standard, why does Data Card not update?
S. Casale Feb 13, 2017 2:47 PM (in response to Jonathan Leeper)They don't update during Check-in?
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Jonathan Leeper Feb 13, 2017 3:21 PM (in response to S. Casale)No, no update upon check in.
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Michael Dekoning Feb 20, 2017 6:27 PM (in response to Jonathan Leeper)Jonathan,
The only thing I would add to the previous discussion would be that you could write a macro to update value for the property you are using for the part number to the file name without extension. At least that way you eliminate typos from users updating the value on their own. You could also use the macro in the SolidWorks Task Scheduler to bulk update. Just don't forget to check out the files in the vault before running it.
P.S. Make sure you don't have Default Overwrites checked for the variable in the data card.
-
-
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Jeff Sweeney Feb 21, 2017 1:07 PM (in response to Jonathan Leeper)I don;t understand why people want to put the file name in the data card. I know the file name because I just clicked on the file name to bring up the card in the first place.
Just one more field I have to keep up-to-date.
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Michael Dekoning Feb 21, 2017 1:16 PM (in response to Jeff Sweeney)Jeff,
I agree if that's all that's being requested. I, perhaps incorrectly, concluded that this was about having a part number value synchronized with the file name without its extension. Personally, I don't understand the need for the part number and file name to match, but many people do (in fact one was my manager and he won ).
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Steve Ostrovsky Feb 21, 2017 1:23 PM (in response to Michael Dekoning)I gave up on that fight a long time ago. If they want the filename (part number) to be on the data card so be it. There are easier battles to fight than adding a simple field of data on the card. It only gets juicy when you want to rename files and have the value on the data card update with it (hence the current thread).
-
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Prasad Bhonsule Feb 22, 2017 3:58 AM (in response to Jeff Sweeney)I do agree to a degree, I think about it in another way as well, SolidWorks PDM has the ability to put the filename in the datacard, it should have the ability to update a value if linked, if the name is updated.
-
-
Re: Renaming files in PDM Standard, why does Data Card not update?
Ville Makinen Oct 20, 2017 9:28 AM (in response to Jonathan Leeper)For anyone stumbling upon this thread as I did, there is an SPR Enchancement request already created for this, please vote for it:
SPR 403481: Enhancement: Special value, Default value, 'File Name' (or name based on serial number) should update in data card variable if file is renamed or named via move-tree
For anyone wondering why someone would want to have file name = part number;
Our company is creating thousands of files per year, we don't want to use effort when naming the files, description should be enough and since you can show description at SolidWorks feature tree we are not missing out. We are also using unigue filename policy enabled at PDM, so if people would try to name files themselves they would be stopped very briefly at check in dialog when someone else already used that part file name. Also it's easier to share files to people outside your organization when the file is already named as the part name.
The reason we have part number as data card variable is due to ERP export from PDM. Export rule has setting to use other Variable than PDM internal ID to identify the parts.
We also have few exceptions to the rule of filename = part number. Our company has some really old legacy parts from the 40s / 50s with part numbers that contain slash-marks /, and since you can't use slashes at filenames, we need to use diffrent symbols at filenames and write the actual part number to the data card to keep ERP Export working. This also makes it impossible for us to use only file name as part number.
-
Re: Renaming files in PDM Standard, why does Data Card not update?
james demarco Dec 3, 2018 11:37 AM (in response to Ville Makinen)Voted for this!
-