pyui.parse_length - pytha-3d-cad/pytha-lua-api GitHub Wiki
Parses a string containing one or multiple length values to numbers. This function is preferentially useful to parse length values.
pyui.parse_length(string)
Parameters
| Type | Description | |
|---|---|---|
string |
string |
String to be parsed |
Return value
| Type | Description |
|---|---|
number1 [,number2, ...] |
The parsed numbers |
Note
pyui.parse_length will parse length units and convert them into the working unit properly (e.g. 1m will be converted to 1000 when working in mm).
Multiple numbers that are separated by commata will result in multiple return values.