Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Automate lookup table creation?

EvanReeseEvanReese Member, Mentor Posts: 2,144 ✭✭✭✭✭
I want to make a function to generate a lookup table map with FS. My function creates the right map (I think), but I can't add it to a feature precondition; it says its not a "map literal". Is that because of regeneration order making the precondition run before the function? If so, how should I go about generating a lookup table with FS instead of typing it manually?

I considered just printing it all to the notices panel to copy/paste, but it loses some important formatting, which I don't want to edit. I could brute force it with a function that concatenates stuff just to print it with the right formatting, but it doesn't feel like The Right Way.
Evan Reese

Best Answers

Answers

Sign In or Register to comment.