Symbolica How to use ug_askExpressionValueAsString

2021-10-06T23:26:40Z
Symbolica

Summary


Details

--------------- 
How to use ug_askExpressionValueAsString



Solution



When using insert function in the expressions dialog box, there are dozens of 
functions beginning with "ug_", one of which is ug_askExpressionValueAsString


When using this function, you get can into trouble if you don't use the good 
format, so here is an example below :


length=12.345 units=mm type=number 
length_as_string=ug_askExpressionValueAsString( length, "%0.3f%" ) type=string 


You need not forget quotations marks and percent for the format which also 
indicates the number of digits to use.


%0.3f% will do 12.342, and %0.1f% will do 12.3



Notes and References


Hardware/Software Configuration

Platform: all
OS: all
OS Version: ALL
Product: NX
Application: DESIGN
Function: EXPRESSION

Ref: 002-7007183

KB Article ID# PL7007183

Contents

SummaryDetails

Associated Components

Symbolica