<p>Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.</p></p><strong>First time visiting? Here are some places to start:</strong></p><ol style="list-style:inherit;margin-left:25px;"><li>Looking for a certain topic? Check out the <a href="https://forum.onshape.com/categories">categories filter</a> or use Search (upper right).</li><li>Need support? <a href="https://forum.onshape.com/post/question/community-support">Ask a question</a> to our <a href="https://forum.onshape.com/categories/community-support">Community Support</a> category.</li><li>Please submit support tickets for bugs but you can request improvements in the <a href="https://forum.onshape.com/categories/product-feedback">Product Feedback category</a>.</li><li>Be respectful, on topic and if you see a problem, Flag it.</li></ol><p>If you would like to contact our Community Manager personally, feel free to <a href="https://forum.onshape.com/profile/6/LouGallo">send a private message</a> or <a href="mailto:lgallo@onshape.com">an email</a>.
</p>

Build Enum using array of strings

sam_parsons
sam_parsons Member Posts: 43 PRO
edited September 2020 in FeatureScript
Working on building a custom feature with dropdowns that change based on imported JSON, but I'm finding that the only way to build an enum for a drop down input is with text that is automatically recognised as a set type, so there isn't any way of passing it a variable like an array of strings taken from a JSON.

If this is possible to implement, it could be really interesting for us.
Tagged:

Comments

  • sam_parsons
    sam_parsons Member Posts: 43 PRO
    edited September 2020
    Just found lookup tables. But they seem like they can get out of hand quite quickly with lots of nested options