cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
JGoode
Expert

Convert from string to length

Hello,

 

is it possible to convert a string to a length?

 

Thanks

ArchiCAD 27

Windows 10
1 Solution

Accepted Solutions
DGSketcher
Legend

In GDL yes. Look up the obviously named SPLIT command. 🙄 To be fair it does a good job, it's just not as immediately obvious as something like "StrToNum" which doesn't exist.

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

Go to post

3 Replies 3
DGSketcher
Legend

In GDL yes. Look up the obviously named SPLIT command. 🙄 To be fair it does a good job, it's just not as immediately obvious as something like "StrToNum" which doesn't exist.

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

... Unless you were after the length of the word on screen which is STW, or the number of characters which is STRLEN?

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

Thank you very much! I was aware of the SPLIT command but didn't know that it achieved what I was after.

ArchiCAD 27

Windows 10

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!