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.
Referencing Array Parameter Index in Item Label Template
mahir
Member, Developers Posts: 1,319 ✭✭✭✭✭
Is it possible to access and include the index of each array parameter in its label? Something like "Item label template" : "Line #index" ?
0
Answers
Do you agree? Can you think of a natural way of getting around the issue?
Another option would be to make array indices static, i.e. removing #2 does not renumber #3. The array indices could then be renumbered as part of the EditFeature function. I personally don't like this option. Skipped numbers would just get on my nerves. My brain would always think 1, 2, 4... wait, where's 3!?
Is there now a way to do this?
Thank you.
@graham_lock
editing logic and a UI hidden parameter can do it.
Custom FeatureScript and Onshape Integrated Applications
Thank you.
For anyone looking into this in the future - I've written a short blog article on the solution:
https://www.smartbenchsoftware.com/post/making-use-of-hidden-parameters-in-featurescript
Custom FeatureScript and Onshape Integrated Applications