- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm making an addin for making friction-fit "lids" to go on boxes. The user selects the open face of the box, and my addin:
- projects the face into a new sketch
- creates some curves with sketch.offset
- extrudes the new profiles into a new component
When I run my addin I can confirm that the sketch contains the projected curves and offset curves as expected. However if the box is edited earlier in the timeline (eg to add a fillet), the projected curve is update, but the offset curves do not update, and lose their offset constraint.
My code uses sketch.project() on the original geometry and then sketch.offset() on the projected lines. I don't understand why the offset constraint is lost when the timeline is recalculated. My only guess is because my addin doesn't have an executeHandler, it only has an executePreviewHandler (with isValidResult=True). But it feels to me that my addin shouldn't need to run at all once it's done its job. The offset constrain should be sufficient. What am I missing?
Below are screenshots showing how a fillet causes the offset constraint to be lost.
Before unsuppressing the fillet
After unsupressing the fillet. Offset constraint is lost.
Solved! Go to Solution.