2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2022-10-07 08:35 AM
Hi
I have a problem with my skin label.
It has a parameter named "iselectfinish" for showing name of user select skin
and this parameter works usually well.
but if a wall has skins with the same thickness and name, it's not working.
When the wall doesn't have the same thickness and name, working good.
this is when it has skins with the same thickness and name on one wall.
this option tap is not working properly.
<MASTER> if GLOB_SCRIPT_TYPE <> 2 and GLOB_SCRIPT_TYPE <> 3 then for i = 1 to numFinish
<PARAMETER>
for i = 1 to numFinish next i values{2} "iSelectFinish" _iSelectFinish, _stSelectFinish |
I guess this problem come from "valuse{2}" but I couldn't find a way to improve it.
How can i solve this problem? please help.
Solved! Go to Solution.
2022-10-07 02:56 PM - edited 2022-10-07 02:57 PM
There is something to know about "VALUES{2}" and that is its inability to have identical values.
Neither the integer, nor the associated value are allowed to be repeated. Just think of it, you have two items named the same, which one is the right one? The user surely doesn't know!
To avoid that I would do a another check if both thickness and name repeat, and if so append a number to the name.
2022-10-07 02:56 PM - edited 2022-10-07 02:57 PM
There is something to know about "VALUES{2}" and that is its inability to have identical values.
Neither the integer, nor the associated value are allowed to be repeated. Just think of it, you have two items named the same, which one is the right one? The user surely doesn't know!
To avoid that I would do a another check if both thickness and name repeat, and if so append a number to the name.