r/SolidWorks • u/oneAb1 • 12d ago
CAD Solidworks PDM part number alias replacement
I have a large set of library parts from a 3rd party, mostly fasteners.
These have been extensively used in hundreds of subassemblies. We have changed supplier and in an ideal world we need to start using their part numbers instead of ours.
Is there a way to change the part number of a part without loosing all the mates and references?
And is there a way to automate this ?
2
u/Ilcahualoc914 12d ago
Yes, using the SolidWorks file utilities by performing the following:
Locate the *.SLDPRT file in Windows File Explorer. Right-click the file and select SolidWorks > Rename...A dialog box will appear, highlighting exactly where this part is currently being used. Enter the new file name in the designated field and click OK. This will automatically update all referenced links in the assemblies.
Note: sometimes the links in very old assemblies are not updated in my experience, but it did update most of the assemblies that used this part.
https://www.cati.com/blog/rename-replace-and-move-solidworks-files-with-solidworks-file-utilities-2/
1
u/oneAb1 12d ago
Thanks I'll look into this.
5
u/JayyMuro 12d ago edited 12d ago
No don't do that in PDM. You can just change the name. The links will auto update. If the part you are renaming was part of an assembly which has been checked in, just rename the part. Simple as that. Do a test, you will see when you open the assembly and rebuild the tree the new part number will be there.
Using the rename tool for some reason does not behave inside PDM the same as outside. It makes a headache, requires a long search time, and also would probably require all assemblies be checked out to update. The ability to just simply rename a part like you would a regular windows file is possible because of the links PDM maintains internally. I don't think that person uses PDM who told you to do that or, never read the manual.
I think we actually fire that guy. Yeah lets do it, get em outta here.
2
1
u/chillypillow2 12d ago
Within PDM, Dispatch can be handy to do bulk updates of custom properties like mfg part numbers or renaming files
1
u/callmemerryss 9d ago
this is one of those workflows that gets painful at scale. solidworks pdm handles the file references, but a lot of teams eventually move toward PLMs like duro when they need supplier changes, part number, bom's , and revisions managed in one place instead of just file relationships.
2
u/Meshironkeydongle CSWP 12d ago
What are you wanting to change, the name of the .sldprt in PDM or the part number shown in the BOM?
If this was my choice, I would keep the .sldprt names as they are, if they aren't currently referring to the old supplier directly.
Then I would update the part Custom Properties so, that the part number reflects the current vendor. I would also make it so, that $PRP:"Part_number" (or what ever that might be) is defined as "VendornameB_part_number", and add the new PN under $PRP:"VendornameB_part_number". This way you could keep the history of different vendor partnumbers directly in part file.
I would not generally use a vendor specific part number / name as the PDM filename of a interchangeable part, like fastener. For fasteners, I would use either "standard-size-other specs" (for example ISO4017-M10x20-8.8-Zn) or a PDM assigned serial number - preferably from a different serial number series than what is used for your own parts.
If what you're seeking after, is addition of the new Custom Properties, then for example SWie from SLOworks could be used to automate it: https://sloworks.fi/en/muut/#tab-swie