# \[IMPLEMENTED\] Units Selection in API

**URL:** <https://forum.universal-robots.com/t/implemented-units-selection-in-api/86>\
**Category:** Product Wishlist\
**Created:** [July 12, 2016, 6:55am UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86 "2016-07-12T06:55:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon98165733](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@anon98165733](https://forum.universal-robots.com/u/anon98165733)\
**Post date:** [July 12, 2016, 6:55am UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/1 "2016-07-12T06:55:52Z")

</div>

The user selected robot setting “Units Selection” should be available in the API. That will make the end user capable of making the selection ones, and afterwards all polyscope values will be in the selected units.

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [July 12, 2016, 8:33am UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/2 "2016-07-12T08:33:44Z")

</div>

Thank you for the feature request, @anon98165733

Note: Other users that find the feature request relevant to themselves might “like” the post or provide their own alternate use case below.

---

<div class="post-metadata">

**Author:** ![anon43982785](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon43982785](https://forum.universal-robots.com/u/anon43982785)\
**Post date:** [August 11, 2016, 3:18pm UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/3 "2016-08-11T15:18:23Z")

</div>

Having just encountered the need, I’d like to second this request on unit selection from script.

---

<div class="post-metadata">

**Author:** ![anon67860743](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@anon67860743](https://forum.universal-robots.com/u/anon67860743)\
**Post date:** [September 16, 2016, 8:15am UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/4 "2016-09-16T08:15:02Z")

</div>

Same here.  
Is there any workaround now to know if user have selected metric or U.S Customary?

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [September 22, 2016, 11:46am UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/5 "2016-09-22T11:46:53Z")

</div>

There is no workaround.  
However you might use Java getLocale to read the local language settings.  
However if the robot is running “English” it could be quite hard to determine the units.  
In your plugin though, the workaround could be to create a radio button for the user to choose.

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [November 27, 2017, 1:21pm UTC](https://forum.universal-robots.com/t/implemented-units-selection-in-api/86/6 "2017-11-27T13:21:37Z")

</div>

Check out the new 3.5 release, this feature have now been implemented.  
[Release of 3.5](http://forum.universal-robots.com/t/release-of-polyscope-3-5-and-sdk-1-2/1365)
