License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

GDL
About building parametric objects with GDL.

GDL: STR{2} User Precision

Lingwisyer
Guru

Hi All

 

Is there some other way to allow the user to set the precision as the format string does not allow parameters...?

 

"%[0 or more flags][field_width][.precision] conv_spec"

 

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
2 REPLIES 2
DGSketcher
Legend

Does STR (numeric_expression, length, fractions)  not give you what you want?

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
Lingwisyer
Guru

Ah. I was dealing with the Length input wrong so it was bugging out. And Fractions cannot be bigger than LengthLength being Fractions + 1 seems to work well.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!