Can I set a Feature UI preview tolerance with Featurescript?
EvanReese
Member, Mentor Posts: 3,100 PRO
I'm working on a feature that uses refractive indexes of various materials, and one of them defaults to 1.00027717 (which is air), instead of 1 (which is a vacuum). When you just look at the feature UI though, all of it is rounded to 1 until you click the field to edit it, so a user wouldn't understand what the default number actually is. Is there a way I can control how many decimal places to preview?
0
Answers
-
The only way I know of is the work space units and changing decimal places there. Can you temporarily change the work space properties while in your function?0
-
Crude workaround, but you could use a string parameter, which will display your value literally, and use stringToNumber in FS.0
-
Thanks for the ideas. Either of those are even less desirable, so I'll roll with it as-is, but very much appreciate the input0
-
Perhaps you could display an info banner with the actual number with a description?Senior Director, Technical Services, EMEA0



