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.
How does identity work?
I've been using Featurescript for a while but don't really understand how identity is determined.
Specifically, one featurescript I have extrudes each region of a sketch separately, even if they're joined. This will occasionally break if someone adds another region to the sketch used to define it. How can I make this script robust to changes in the sketch?
Another script I have generates a roller chain, and has options for Simplified and Realistic modes which in turn each call a different script. When the mode is changed, the new body has a different identity than the old one, which breaks anything that referenced it. How can I make both of these sub-features produce a body with the same identity?
Chain Path (line 743 for the start of the main feature).