Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm creating a new component with a couple sketches, extrudes, and revolves. Currently my Python Add-In is rebuilding all of the geometry after every user input change. It's even doing it while a multi-digit number is being entered into an input field. This causes a lot of lag. Is there a way to keep the previous preview and just edit what changed? I added an if statement to the ExecutePreview function, but the preview disappears on the second event call when I don't build the geometry.
Could I save the component to a global variable, then re-insert it somehow? It doesn't make sense to recreate all the sketch lines and constraints when the user only changed the extrude length.
Solved! Go to Solution.