Unit of measure

Post Reply
User avatar
jpestell
Newbie
Posts: 11
Joined: Tue May 16, 2017 11:24 am
Location: Melbourne
Contact:

Unit of measure

Post by jpestell »

Hi Everyone,
I have a couple of MIS's sending XML to switch, one in Australia and New Zealand and the other in America. The issue is the unit of measure AU and NZ are metric and using mm the US is imperial and uses inches. My preflights are using Variable Sets to get the size but am unable to figure our how to set a different unit of measure.

Any assistance would be greatly appreciated
Thanks
John
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Unit of measure

Post by freddyp »

When you define the value of a variable in a Variable Set in Switch and it is a variable of the type "Length" there is an option to define the unit of the value you are extracting from an XML (or from a database). You do not have to worry about the units that you use in PitStop: if the XML contains inches and your PitStop report uses mm, you will see the result in mm; conversions are done automatically.
User avatar
jpestell
Newbie
Posts: 11
Joined: Tue May 16, 2017 11:24 am
Location: Melbourne
Contact:

Re: Unit of measure

Post by jpestell »

Hi Freddyp, thanks for your response. Its not the report that's the issue its the preflight itself, it preflighting against size values that Pitstop thinks are mm and are in fact inches so always failing due to size.
mkayyyy
Member
Posts: 75
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: Unit of measure

Post by mkayyyy »

Try passing in the unit of measurement after the measurement to your Variable Set.

For example "20 in" and when the Variable Set is evaluated it will convert the value to mm: https://gyazo.com/31bda5031af3946fa8397c5240540c44
User avatar
jpestell
Newbie
Posts: 11
Joined: Tue May 16, 2017 11:24 am
Location: Melbourne
Contact:

Re: Unit of measure

Post by jpestell »

thanks @mkayyyy
Post Reply