Constraining rectangle size with rounded corners

Constraining rectangle size with rounded corners

mahboudz
Explorer Explorer
2,810 Views
14 Replies
Message 1 of 15

Constraining rectangle size with rounded corners

mahboudz
Explorer
Explorer

I am designing a shell for a hardware product. I'm at an early stage, and am also new to Fusion 360.

 

I have a rectangle inside a larger, rounded-cornered rectangle. The inner rectangle will represent the size of the PCB and battery that will eventually be contained. Because of the rounded corners of the final shell, I wanted to be able to have a way to ensure that the inner dimensions were at least what I need, regardless of what the shell's size and shape end up being.

 

What I am trying to figure out is how to make the outer rectangle be formulaically constrained to the inner rectangle. The variables I want considered are:
- the length and width of the inner rectangle

- the radius of the outer rectangle's rounded corners

 

Doing so now means that when I have final numbers for the PCB and battery dimensions, I can just alter the length and width, and the outer rectangle would resize accordingly. And if we also decided that we wanted rounder or less round corners, then adjusting that dimension, would readjust the outer rectangle accordingly.

 

Once I get this done, then the next step would be to create an extrusion of the outer rectangle into a 3D shape. (there I'd want similar constraints on the height, plus there is a chance we might want rounded corners on the top of the shell too, not just the sides.

 

Here is the shape I am currently working with. 

mahboudz_0-1647999411567.png

I've used a multiplier of 1.15 on both the length and width for now, but that isn't perfect. I end up with cases like this:

mahboudz_1-1647999626128.png

There's too much wasted space in this one, as you can see from the spacing between the corners and the round corners.

0 Likes
2,811 Views
14 Replies
Replies (14)
Message 2 of 15

hamid.sh.
Advisor
Advisor

If you want that corners of the inner rectangle always touch the fillets you can do like this screencast.

File is attached.

Hamid
0 Likes
Message 3 of 15

mahboudz
Explorer
Explorer

Mersi Hamid.

I noticed that you drew a Center Rectangle instead of a 2-point. Is that important in this instance?

 

Also, should I have the two rectangles on separate sketches so that later the inside rectangle doesn't impact the end-result?

 

Eventually, I want to create a hollowed out shell that looks like the below, and the dimensions of that are based on that inside rectangle, but when I go to 3D print this, I don't want the inside rectangle to impact the thickness of the shell or anything like that.

IMG_9881.jpg

0 Likes
Message 4 of 15

HughesTooling
Consultant
Consultant

If I was creating that I'd have a sketch with one rectangle with sharp corners, no fillets. Extrude, add fillets as a feature to the box then shell. Rule is keep sketches simple and fillet the body where practical.

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 5 of 15

hamid.sh.
Advisor
Advisor

@mahboudz wrote:

... I noticed that you drew a Center Rectangle instead of a 2-point. Is that important in this instance? ...


I used center rectangle to easily center it on origin. Also in what I did in my screencast you notice I needed the center of rectangle. Even in your own picture, as far as I can see, you have added construction lines to have the center.

 


@mahboudz wrote:

... Also, should I have the two rectangles on separate sketches so that later the inside rectangle doesn't impact the end-result? ...


I'm not sure why are you worried about having two rectangles in a sketch. Whatever operation you want to do you can select the profile that you want.

 

Now with these all being said; in my previous reply I just tried to answer your specific question about how to make the constraint you wanted. If I were you I would listen to @HughesTooling 's advice. Keep the sketch as simple as possible.

Hamid
Message 6 of 15

HughesTooling
Consultant
Consultant

@mahboudz See attached file for some ideas on this. Step along the timeline features to see how it's made.

HughesTooling_0-1648027533561.png

 

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Message 7 of 15

TheCADWhisperer
Consultant
Consultant

I recommend that you Attach your completed *.f3d file here and one of the experts here will then demonstrate how they would have completed the geometry.

Message 8 of 15

mahboudz
Explorer
Explorer

@HughesTooling That's a pretty good example for me. What I'm still missing is how to constrain the inside dimensions to a hight, width and length. As my PCB size becomes more finalized, I want to modify those three numbers and have the shell around resize to fit it. The hard part for me was the rounded corners since they encroached on the internal size. When I started out with sketches of the rounded corder rectangle, that was constrained to an internal rect, it was clearer. With your design where you start with square corners and then do fillets, I'm not sure how I can constrain to the internal size that I need.

 

Where I get lost is whether I need to have the measurements and constraints all done in the sketches, in 2D, before the extruded shapes are created.

0 Likes
Message 9 of 15

davebYYPCU
Consultant
Consultant

If the internal size is the most important, use them, instead of guessing.

Change parameters and see if it is what you were thinking of.

 

PCBCoverDB.PNG

 

Might help....

0 Likes
Message 10 of 15

mahboudz
Explorer
Explorer

Thank you. How do you get the Parameter listing? The table with all the mm values.

0 Likes
Message 11 of 15

HughesTooling
Consultant
Consultant

@mahboudz The parameter manager is on the modify menu. Attached is another version where you can set the inside sizes and the outside is calculated with clearance.

HughesTooling_0-1648198244733.png

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 12 of 15

mahboudz
Explorer
Explorer

Thank you all so much, this has been very eye-opening. What part? The help you've all provided (and yes the Fusion training too).

 

Is this thread a good place to ask the following questions or shall I open a new thread some place else?

 

- shall I add a bead around the body/lid so that it snaps shut, or should I use hooks? (I know it would be cheapest if I used glue, but I'd rather not - I want the enclosure to be somewhat permanently closed once snapped shut, but glues seem like a mess). A bead could make ejection of both parts more difficult unless I use more flexible material. I'm looking for material that looks and feels like Lego blocks.

- instead of making the USB port (the little opening) a slot to make ejection easier, should I use a nicer clean USB-sized hole and have side-action on the injection-molding? The slot is actually much higher up on the lid side of the shell, so the slot going up to it is a little unattractive. Alternatively, I can have that opening milled out later.
- Same thing for a resent button hole and a small LED light exit.

- Any recommendations on injection molding services in the US? I've already reached out to ProtoLabs and Xometry.

0 Likes
Message 13 of 15

HughesTooling
Consultant
Consultant

Does the PCB have holes in it to fix it to the enclosure? If it does the cheapest option for fixing the 2 halves together is just simple pillars and bushes. 

 

Something like this with a 2mm pillar on one side and a 2mm bush the other is surprisingly difficult to get apart. If you make the base fit inside the cover it will almost impossible to get apart. The bushes need to be at least 5mm long to work well. File's attached.

HughesTooling_0-1648479130771.png

 

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 14 of 15

mahboudz
Explorer
Explorer

Thank you again. I've been working hard to get the PCB as small as I can, and I had to leave the mounting holes out. And that also means that the pillars are gong to make the enclosure too big, since they'd take space outside the PCB dimensions.

Looking at the options I have left, that leaves me hooks (barbed features) and slots (I apologize if I don't know the terminology), and also an indent on the outer shell, and a bead on the lower feature to make a snap fit type of closure. The latter is the less permanent closure, but it might not be a bad option if rechargeable battery replacement is a desire.
Is there a site where all practical mechanisms are pictured? I'd like to see what other options I have.

 

Also, do I need to worry about draft angles, or will the injection molding companies help out with that?

0 Likes
Message 15 of 15

mahboudz
Explorer
Explorer

Thank you again. I've been working hard to get the PCB as small as I can, and I had to leave the mounting holes out. And that also means that the pillars are gong to make the enclosure too big, since they'd take space outside the PCB dimensions.

Looking at the options I have left, that leaves me hooks (barbed features) and slots (I apologize if I don't know the terminology), and also an indent on the outer shell, and a bead on the lower feature to make a snap fit type of closure. The latter is the less permanent closure, but it might not be a bad option if rechargeable battery replacement is a desire.
Is there a site where all practical mechanisms are pictured? I'd like to see what other options I have.

 

Also, do I need to worry about draft angles, or will the injection molding companies help out with that?

 
 
0 Likes