Extrude made from parametric sketch not working properly. (Possible bug?)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Being a programmer, I like being able to define models using the 'User Parameters' to generate different versions of the model by just redefining the parameters. I've done a couple of them so far, one is for square tubing where the parameters define the size of the tube and the wall thickness and another models a T-Nut.
I watched the You-Tube video by NYC_CNC last week where he described how to model a “1-2-3” block. A “1-2-3” block is a block that is 1 inch thick, 2 inches wide, and 3 inches long. It has a rectangular pattern of holes on the face and holes that intersect these drilled through from the edges. I thought to my self, that this would be an excellent thing to model using user parameters so I set out to do so.
I created the following user parameters to use to create the model.
Scale = 1
nH_X =5 # The number of holes in the X direction
nH_Y =3 # The number of holes in the Y direction
D_Z = ((1 * scale) * 1. in) #Dimension in Z
D_Y = ((2 * scale) * 1. in) #Dimension in Y
D_X = ((3 * scale) * 1. in) #Dimension in X
sH = .375 in # Size for holes
hSpaceX = D_X / nH_X #Spacing for holes in the X direction
hSpaceY = D_Y / nH_Y #Spacing for holes in the Y direction
h1_X = hSpaceX / 2 #X of hole 1
h1_Y = hSpaceY / 2 #Y of hole 1
The first 3 are the ones that would be set to define the model with the rest being derived from them.
First I created a rectangle of size that had the lower left corner anchored to the origin and dimensioned it to D_X and D_Y. I then created a circle and used the “Sketch Dimension” tool to set the size and position it at h1_X and h1_Y. I then created a rectangular pattern using nH_X and nH_Y and hSpaceX and hSpaceY. I then extruded this sketch to create the block with the holes in the face.
I did a simular sketch on the left and bottom face only they only had one row of holes. I extruded them using the “Intersect” function.
I started tested it using different values for scale and nH_X and nH_Y. and it worked great until I used a value greater than 5 for nH_X or a value greater than 3 for nH_Y. When I did, it would only model that first 5 holes in X or the first 3 holes in the Y direction. Could be coincidence, but this is also the number of holes in X and Y that I had set when I first created the model.
To try to figure out what was going on I turned the sketches back on expecting to see them also missing the missing holes but to my surprise, the sketches were correct and had all the holes. Only the solid model is missing the holes.
Any ideas why the extrude is not extruding all the holes that are in the sketch? This sure seems like a bug to me.
I'm attaching some screen shots showing the model and the sketches and one of the parameters used by the first sketch and extrude.
Jody B. Caldwell