Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert from string to length

JGoode
Enthusiast

Hello,

 

is it possible to convert a string to a length?

 

Thanks

ArchiCAD 17, 19, 21 and 23
Windows 8
1 ACCEPTED SOLUTION

Solution
DGSketcher
Virtuoso

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 macOS Big Sur / AC24UKI (most recent builds)

View solution in original post

3 REPLIES 3

Solution
DGSketcher
Virtuoso

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 macOS Big Sur / AC24UKI (most recent builds)

View solution in original post

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

ArchiCAD 17, 19, 21 and 23
Windows 8

DGSketcher
Virtuoso

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

Apple iMac macOS Big Sur / AC24UKI (most recent builds)

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!