06-06-2022
08:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-06-2022
08:40 AM
Hi @Maxim-CADman77 , the error happens because when you add a feature the body is recalculated. After it's recalculated, the face references you got before are now stale. You have to get the body and faces again. This happens even though the thread feature doesn't add or remove faces. The body is still recalculated.
Since the number and order of the faces doesn't change, you can just use the face index as a "persistent identifier". See the attached rule. If you were adding a feature that affected the number of faces, then you would need to use ReferenceKeys or Attributes to get a persistent ID.

Mike Deck
Software Developer
Autodesk, Inc.