string list values( enum par )

string list values( enum par )

5axes
Advisor Advisor
590 Views
1 Reply
Message 1 of 2

string list values( enum par )

5axes
Advisor
Advisor

 

In the macro function there is a macro command call Values, in the documentation it's writen :

Returns a list of strings that represent the display states of the parameter. The values returned are translated to the user's language. This function can be used to provide a list of choices to the user.

 

Is it possible to get the same type of result without the translation  to get every values of a parameter ?

 

IE :

 

LANG ENGLISH

STRING LIST $Str = Values($Toolpath.strategy)

PRINT PAR $Str

 

will return :

 

[0] (STRING) Unknown
[1] (STRING) Raster
[2] (STRING) Radial
[3] (STRING) Spiral
[4] (STRING) Pattern
[5] (STRING) Committed Pattern
[6] (STRING) Committed Boundary
[7] (STRING) Constant Z
....

 

But the real parameter value are : com_pattern and com_boundary

 

Values.jpg

 

 

Any experience or tips on this point ?

0 Likes
591 Views
1 Reply
Reply (1)
Message 2 of 2

5axes
Advisor
Advisor

Note : I have made the test with every type of 'technical' LANG without sucess, It' always a translation Smiley Sad

 

  • LANG C
  • LANG none
  • LANG check

lang.jpg

 

 

 

0 Likes