- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to write a script to make plywood joints like the one below, and am having problems getting things constrained so that 2 user parameters, 'stock_thickness' and 'clearance', can be updated.
The next image shows the corresponding sketch, which you can see is
not fully constrained. The constraints and dimensions I've added include
- All rectangles have a parallel, perpendicular, and equal constraint.
- The common lines between narrow and wide rectangles have 2 coincident constraints added.
- Height of 2 shorter rectangles is dimensioned to 'clearance'.
- 2 equal constraints are added to vertical lines of the 3 wider rectangles.
- The horizontal extent is dimensioned to "2*clearance + stock_thickness".
- 2 coincident constraints are added at diagonal vertices of the projected face.
Since this hasn't fully constrained things, I though that coincident constraints might be needed at the corner of each rectangle. I tried that, and get
Runtime Error: 5 : Failed to solve. Please try revising dimensions or constraints.
I've simplified the code so that the only thing I do in a sketch is make a rectangle and try to constrain one corner:
And it still gives the same error. Can anyone point me to what is happening here, or help me out more generally with how to fully constrain my sketch?
Any help is appreciated!
Solved! Go to Solution.