I started over with the parameterization of the box. After watching a Youtube video on parameterizing hole patterns, I was able to figure out how to get the hole patterns to work correctly with the parameters. 3"W by 5"L by 2" H box is shown below. The hole pattern algorithm needs a starting offset distance from the edge of the panel to the first hole for each direction W, H, and L. Then an equation determines the number of holes and the interval in between:
The paramters for this box are shown below.
- boxH, boxL, boxW: parameters are the box outer dimensions
- thick1, thick2: parameters are panel thickness parameters
- ??hole: parameters are for the screw holes, clearance and tap
- offset?: parameters are the offset distances to the first hole for H, W, and L
- nscr?: parameters are the equations to determine the number of holes and interval between holes.
click to enlarge
Here is the same box with the length set to 3 inches. Notice the number of holes along the length has been reduce from 5 holes to 3 holes
No comments:
Post a Comment