BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
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-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | 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-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Learn and get certified!

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!