Anyone interested in creating an add-in for assigning part numbers in EPDM? Or know of a supported add-in that is available?
Need it to be able to run during a transition and manually. Not create/burn a number every time a SW file is added to the vault.
I'm stretched pretty thin and unable to tackle EPDM API. Looking for some help!
Here is my vba code for making the part numbers inside solidworks from the EPDM generated serial number.
<p> 'Assign part number from serial number. XXX-XXX(-XX) format</p><p> PartNumber = Left\\\$(SerialNumber, 3) & "-" & Right\\\$(SerialNumber, 3)</p><p> ...</p><p></p><p> 'For library parts with multiple configurations (ie with multiple bolt lengths)<span style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;">, a</span><span style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;">ssign part numbers for each configuration.</span></p><p><span style="font-size: 10pt;"> If g_ConfigsAreSeparateParts Then<br></span></p><p><span style="font-size: 10pt;"> For i = 0 To UBound(g_ConfigNameList)</span></p><p> sConfigName = g_ConfigNameList(i)</p><p></p><p> 'Create dash number (ie "-01"). Start with 01 (i+1). Probably a cleaner way to do this.</p><p> DashNumber = "-" & Right\\\$("0" & i + 1, 2)</p><p></p><p> 'set @ config to invalid part number</p><p> If sConfigName = "" Or sConfigName = "PreviewCfg" Then DashNumber = "-XX"</p><p></p><p> 'Create whole part number</p><p> ConfigPartNumber = PartNumber & DashNumber</p><p> ...</p><p> Next i</p><p> End If</p>SolidworksSolidworks Pdm enterprise Pdm