Strategies to Address Slow Regeneration Times?
greg_frost204
Member Posts: 12 ✭✭
I'm working on quite a complex model that is attempting to create a 3D spherical jigsaw puzzle.
I create a geodesic dome and then use featurescript to iterate over the edges and create puzzle cuts for each edge (thickened spline curves) with a view to subtracting these from a spherical shell.
It seems to all work fine, and if I apply the featurescript to an icosahedron (30 edges) I get the intended result.
If I attempt to apply it to a 320 faced (480 edges) geodesic, it spins for exactly 10 minutes and then displays an error like:
So it seems that the error I am getting is just some sort of timeout because the regeneration takes too long.
Are there strategies to be able to create a complex model by splitting the regeneration into sections, and including them somehow?
I tried to do this in the one Part Studio by making my featurescript take parameters defining which set of edges it should process and using multiple instances of the script to specify all of the edges, but it ended up with the same sort of timeout error.
I create a geodesic dome and then use featurescript to iterate over the edges and create puzzle cuts for each edge (thickened spline curves) with a view to subtracting these from a spherical shell.
It seems to all work fine, and if I apply the featurescript to an icosahedron (30 edges) I get the intended result.
If I attempt to apply it to a 320 faced (480 edges) geodesic, it spins for exactly 10 minutes and then displays an error like:
Onshape encountered a problem with your last operation. If the problem persists, please contact support. Support code bccaaf8c5e4b00444b953fd5.
If I adjust the script so that it limits the number of edges that it processed to 120, it seems to work fine and produces the expected result of 120 thickened puzzle edge shaped surfaces (with a regen time of about 3 minutes). Or 240 edges with a regen of 5.7 minutes.So it seems that the error I am getting is just some sort of timeout because the regeneration takes too long.
Are there strategies to be able to create a complex model by splitting the regeneration into sections, and including them somehow?
I tried to do this in the one Part Studio by making my featurescript take parameters defining which set of edges it should process and using multiple instances of the script to specify all of the edges, but it ended up with the same sort of timeout error.
0
Comments
-
In custom features you can identify right down to the line where the regeneration time is being taken up with the FeatureScript profiler.
Take a look at the documentation here, and as always, let us know if you have further questions!
0 -
You should be able to utilize rotational group, and pattern the bodies you are creating.0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 14 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 253 Education Community

