geertdaenen
New member
At this moment we are trying to create a string parameter in the relations of a part-model. But we do have one issue we cannot solve.
We have 12 string parameters called V01, V02, V03,... ,V12
These parameters all have a value of one character like "K", "L", R"
Now we want to create one string parameter which is the combination of all 12 string parameters. So we have created this relation:
CODE= V01 + V02 + V03 + V04 + V05 + V06 + V07 + V08 + V09 + V10 + V11 + V12
This will give this result: "KKKLRLLLLKRL"
But now we would like to simplify this result: if there are 3 or more of the same characters next to each other, we want to have the number of the same characters instead of all characters. So the simple code has to be: "3KLR4LKRL"
I know, it's not an easy question. But I hope somebody can help me with it.
We have 12 string parameters called V01, V02, V03,... ,V12
These parameters all have a value of one character like "K", "L", R"
Now we want to create one string parameter which is the combination of all 12 string parameters. So we have created this relation:
CODE= V01 + V02 + V03 + V04 + V05 + V06 + V07 + V08 + V09 + V10 + V11 + V12
This will give this result: "KKKLRLLLLKRL"
But now we would like to simplify this result: if there are 3 or more of the same characters next to each other, we want to have the number of the same characters instead of all characters. So the simple code has to be: "3KLR4LKRL"
I know, it's not an easy question. But I hope somebody can help me with it.