toString in Description?
S1mon
Member Posts: 4,638 PRO
I'm trying to give a tooltip for a UI parameter using the description and I'd like it to show the range. I know if I enter a value outside of the boundsRange it will show the range automatically, but it would be nice to have some hint of what that range is without guessing. It seems like creating a const or inlining the string concat with toString() on the boundsRange entries is not working.
const TOLERANCE_DESCRIPTION = "Stops iteration once motion and hinge residuals are small enough. Range: " ~ toString(boundsRange(TOLERANCE_BOUNDS)[0]) ~ " to " ~ toString(boundsRange(TOLERANCE_BOUNDS)[1]) ~ ".";
annotation { "Name" : "Tolerance","Description" : TOLERANCE_DESCRIPTION }
isReal(definition.tolerance, TOLERANCE_BOUNDS);
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
Tagged:
0
Comments
-
I believe we only allow plain strings in there. Improvement request?
0

