Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
using "Item label template" to number array items
EvanReese
Member, Mentor Posts: 3,059 PRO
I'm trying to name each item in an array parameter. My first thought was to add a hidden Count Parameter and update it with editing logic, which works, but doesn't update with you just click the button to add a new item. It waits till I change something else. Is there another way to do this? I might be overcomplicating it.
0
Best Answer
-
Can you link the code? Unless I'm misunderstanding, adding a new array item should rerun the editing logic function and allow the hidden parameters to be set.0
Answers
-
Can you link the code? Unless I'm misunderstanding, adding a new array item should rerun the editing logic function and allow the hidden parameters to be set.0
-
Thanks, Kevin. Just knowing that's a reasonable approach made me check my code again and I found I the editing logic for this was inside of a big if() that was giving the odd behavior I'm describing. So editing logic is your recommended solution for this though?0
-
Currently array item names depend only on feature parameters, so yes, I think editing logic is the only available solution. Feel free to submit an improvement request to introduce a syntax for including the item number!0
-
Thanks, If it seems to come up more often, I'll do that.0

