Standardizing units of measurement in PDM

Hi all!

I'm self-implementing PDM Pro for my small business. My latest issue is with standardizing units of measurement in the mass field; I'd like everything checked into the vault to be in kg. Is that something that can be easily done? I'd hate to miscalculate weight because someone had SW set to the imperial system.

Alternatively, is it possible to populate the units of measurement from SW without user input? Could I set it up, for instance, so that the appropriate units are automatically added to my data card?

Thanks for all your help. I'd be so lost without you guys

Sam

SolidworksSolidworks Pdm/enterprise Pdm
Answers 6
JS
JS 2021-04-08 Best Answer

Set your part template(s) to use kg. This will work as long as the users don't change it or you don't get files from the outside where they do not use your templates.

The only way to know for 100% you weren't putting in non-kg files in the vault would have an API to check the files as the files get checked in.

You can link a file property to the mass, and then have a data card variable linked to the file property.

comment imagecomment image
JS
JS 2021-04-08

Jeff Sweeney wrote:

I don't think Dispatch is your solution - it doesn't have connectivity to the internal SW files.

 

You could have a trigger on PDM checkin that uses the SW API to check, but that means that you would have to open the SW file to read the units. This could be slow if checking in many files at once.

 

Not necessarily.  You can use the Document Manager interface to check the document setting and disallow the file Add or Check-In.  If the document isn't correct, notify the user.  This has the advantage of forcing the user to take the correct steps and hopefully instilling good habits moving forward.

KB
KB 2021-04-08

I used to use #Task for setting document units on files manually (or in batch if this was applicable). SolidQueue can do the same, but it will be a manual operation for your engineers before checking in.

MP
MP 2021-04-08

You might be able to run SWx Design Checker on the file to make sure it is set to your standards, before bringing into PDM.

JS
JS 2021-04-08

I don't think Dispatch is your solution - it doesn't have connectivity to the internal SW files.

You could have a trigger on PDM checkin that uses the SW API to check, but that means that you would have to open the SW file to read the units. This could be slow if checking in many files at once.

I would recommend a SW add-in that checks the units before a SW save.

SA
SA 2021-04-08

Thanks for the response, Jeff! Good stuff. I have the templates and the file properties set up, but I know we'll be using outside files and, as you point out, that leaves some room for error. Any suggestions for an API? Can this be achieved through Dispatch?

Thanks again for the help.

Sam