Changing a parameter breaks a well-constrained sketch

Changing a parameter breaks a well-constrained sketch

popvotocek
Explorer Explorer
599 Views
7 Replies
Message 1 of 8

Changing a parameter breaks a well-constrained sketch

popvotocek
Explorer
Explorer

Hi! I have a case for an electronics project I am making. I attached the f3d file below. The dimensions of the case and the angle of the front panel are defined by user parameters.

Snímek obrazovky 2023-08-30 104330.png

The front panel angle is 25 degrees

Snímek obrazovky 2023-08-30 104406.png

There is a sketch on the inside of the front panel ("frontPanelSupport") that has screw holes along with a lot of rectangles and offset lines. I would say that it is pretty well constrained. There are coincident constraints that keep the sketch geometry aligned with the wall of the case (it is projected on the front panel sketch as it comes from the "case" body)

Snímek obrazovky 2023-08-30 104810.png

Snímek obrazovky 2023-08-30 104830.png

 

Now, the problem occurs when I change some parameter of the case. For example, I changed the frontAngle from 25 to 20 degrees.

Snímek obrazovky 2023-08-30 104428.png

After this change the sketch completely misaligns even though it is constrained.

Snímek obrazovky 2023-08-30 104532.png

Snímek obrazovky 2023-08-30 104610.png

The body breaks too, of course.

Snímek obrazovky 2023-08-30 104449.png

What could be the problem? How could a sketch misalign like that?

 

Thanks

 

0 Likes
Accepted solutions (1)
600 Views
7 Replies
Replies (7)
Message 2 of 8

TheCADWhisperer
Consultant
Consultant

@popvotocek 

I haven't found the issue yet, but I have already found several things that I would do differently:

1. I would make use of obvious symmetry about the Origin...

2. I would pattern Features rather than duplicating sketch dimensions and symmetry (mirror) constraints...

TheCADWhisperer_0-1693394429746.png

3. I would most definitely do this fanGrillTexture sketch as a single fully defined hex and pattern Feature rather than sketch.

TheCADWhisperer_1-1693394555248.png

 

 

Now let me keep digging... 

Message 3 of 8

TheCADWhisperer
Consultant
Consultant

...continuing on...

I grouped duplicate dimensions together.

I would significantly simplify this sketch.

Each dimension is requires only once and pattern features rather than repeating sketch elements...

TheCADWhisperer_0-1693395988752.png

 

0 Likes
Message 4 of 8

TheCADWhisperer
Consultant
Consultant
Accepted solution

@popvotocek 

What happens if you Delete this Tangent Constraint (and perhaps the 180° dimension)?

TheCADWhisperer_0-1693396649306.png

 

Message 5 of 8

popvotocek
Explorer
Explorer

Thanks a ton for your replies!😀 That was it. This tangency constraint was an error and it was breaking the whole sketch. I replaced it with a perpandicular constraint.

0 Likes
Message 6 of 8

popvotocek
Explorer
Explorer

Yeah, that 180 degree angle was a weird constraint too. I don't know why I thought it was a good idea to put it there:D

 

It is true that this sketch is really overcomplicated. It just shows that I am not very experienced yet. 

 

I don't fully understand what you mean by the fact that each dimension is only required once though. They all serve their purpose in different areas. Could you please elaborate on how you would go about simplifying that?

 

I suppose by patterning features rather than sketch elements you mean just the mirrored parts of the sketch, because other elements are different right?

 

Thanks!

0 Likes
Message 7 of 8

TheCADWhisperer
Consultant
Consultant

@popvotocek wrote:

 

I suppose by patterning features rather than sketch elements you mean just the mirrored parts of the sketch


@popvotocek 

No.

Keep sketches simple...

TheCADWhisperer_0-1693485619470.png

In order of preference from least computationally expensive to most computationally expensive...
Pattern Components 

Pattern Bodies

Pattern Features

and last if not a better way

Pattern sketch elements.

TheCADWhisperer_1-1693485792472.png

 

See Attached file.

TheCADWhisperer_0-1693486010080.png

 

Message 8 of 8

popvotocek
Explorer
Explorer

Wow, thank you for that tutorial. That really helped me a lot and I learnt new methods from the project file. 

 

Thanks and have a nice day!

0 Likes