Sweep not updating after adjusting path on sketch.

Sweep not updating after adjusting path on sketch.

den
Participant Participant
429 Views
0 Replies
Message 1 of 1

Sweep not updating after adjusting path on sketch.

den
Participant
Participant

I have a script that updates a sketch curve that is referenced by a sweep.

 

Maybe it's faulty expectations, but I assumed the downstream body would simply adjust when the sketch changed. That's what happens when I edit it by hand. I looked around for a "recalculate" in the API with no luck.

 

I've tried it both with and without the timeline on. Behavior is worse with the timeline, not actually doing anything and crashing with a notice that "timeline not rolled back" or somesuch, which I couldn't find documented in core.py or fusion.py. Also replacing the sweep path with freshly created curve on the same sketch throws mysterious errors of the gist "_set_path failed", which while descriptive, doesn't help much. It appears to be out of the aliasing facility of occurrences referencing component properties.

 

I can post all my code and let you fix it, but I'd rather just do it myself after finding out the right way to do this:

  1. adjust a sweep path via API
  2. sweep actually moves
  3. function whether timeline is on or off

I can post a screen shot of the path curve in a different place than the sweep if you think it's a bug, but I think I just don't know the intended workflow.

0 Likes
430 Views
0 Replies
Replies (0)