on 08-09-2006 5:51 PM
Hello!
I have package dimensions stored in English units (inches and pounds) and I want to see them in metric using the Java API. I know MeasurementManager.GetString() is the method. My question is how do I convert "mm" or "kG" to the proper unitId for the last parameter (convertToUnits)?
Thanks in advance.
In MDM 4.0.58, here is what I had to do:
get the MeasurementManager from the CatalogData object
loop thru the MeasurementInfo objects to get the dimensions
for each MI object loop thru the UnitInfo objects
print the Id and Name on the console.
find the id's for "mm" under Length and "kg" under Weight (Mass).
Crude but effective. Was hoping there was a better way, but no one seems to know it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.