Multiple sketches in body seem to not make one solid body

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
jusaca
Posts: 5
Joined: Mon Nov 20, 2023 8:36 pm

Multiple sketches in body seem to not make one solid body

Post by jusaca »

I just stared with FreeCad and was doing this exercise:
https://github.com/Flowwie/flowwie-free ... Lasche.PDF

In the accompanying video you can see at 8:41 that the combined body seems solid, as I imagined it would be.
But when I try to replicate this build I get lines crossing through the crosssection of the body, see the attached screenshot. I also attached the FreeCad file, just in case it helps to narrow down my error.
Attachments
Lasche.FCStd
(58.53 KiB) Downloaded 7 times
Screenshot 2023-11-20 214822.jpg
Screenshot 2023-11-20 214822.jpg (65.83 KiB) Viewed 472 times
User avatar
Shalmeneser
Veteran
Posts: 8743
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Multiple sketches in body seem to not make one solid body

Post by Shalmeneser »

Refine = true on the last step.
Attachments
Capture du 2023-11-20 22-24-03.png
Capture du 2023-11-20 22-24-03.png (23.08 KiB) Viewed 458 times
User avatar
Shalmeneser
Veteran
Posts: 8743
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Multiple sketches in body seem to not make one solid body

Post by Shalmeneser »

* You just need 2 sketches if you use PartDesign_Hole.
* 25=25 ?!
Attachments
Lasche_SHALM.FCStd
(29.15 KiB) Downloaded 3 times
jusaca
Posts: 5
Joined: Mon Nov 20, 2023 8:36 pm

Re: Multiple sketches in body seem to not make one solid body

Post by jusaca »

Ahh thank you, that solves it. So I always need to use the refine cmd as my last step? Interesting. Do you know why FreeCad isn't doing that automagically? Is there a upside to not do it?

The drill cmd also seems useful to avoid unnecessary sketches =)
Shalmeneser wrote: Mon Nov 20, 2023 9:30 pm * 25=25 ?!
What do you mean by that?
User avatar
Shalmeneser
Veteran
Posts: 8743
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Multiple sketches in body seem to not make one solid body

Post by Shalmeneser »

jusaca wrote: Tue Nov 21, 2023 7:03 am 1) So I always need to use the refine cmd as my last step?
2) Do you know why FreeCad isn't doing that automagically?
3) Is there a upside to not do it?
1) If you want to. You can need it before a Fillet operation.
2) Edit > Preferences > Partdesign > General : Model settings : Automatically refine ...
3) Yes. Some errors can be caused by refine=on and are hard to solve (because you don't think it's that).
4) 25=25 ?!
4) You should avoid twice the same dimension in a sketch and use instead geometrical constraint (symmetry ?).
Last edited by Shalmeneser on Tue Nov 21, 2023 6:18 pm, edited 2 times in total.
User avatar
M4x
Veteran
Posts: 1425
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: Multiple sketches in body seem to not make one solid body

Post by M4x »

It's just a visual thing. In general, you don't need to refine.
jusaca
Posts: 5
Joined: Mon Nov 20, 2023 8:36 pm

Re: Multiple sketches in body seem to not make one solid body

Post by jusaca »

OK, I see, but it is not really just visual, right? If I export a step file without refining it also contains these two different objects. That's not exactly what I expect from a 3d model body and might result in problems further down the workflow.
4) You should avoid twice the same dimension in a sketch and use instead geometrical constraint (symmetry ?).
Ah that makes absolute sense, thanks for that feedback. I already saw it in your modified project file.
Bance
Veteran
Posts: 3678
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Multiple sketches in body seem to not make one solid body

Post by Bance »

jusaca wrote: Tue Nov 21, 2023 5:03 pm If I export a step file without refining it also contains these two different objects.
That is not the case, please read this page Part_and_PartDesign.
chrisb
Veteran
Posts: 52165
Joined: Tue Mar 17, 2015 9:14 am

Re: Multiple sketches in body seem to not make one solid body

Post by chrisb »

One PartDesign body describes indeed always a single solid. Even if you want, you can currently not have more.
I am one of the guys arguing to leave Refine=false by default. Not because I like the additional seams, but rather because it causes less trouble. Troubles may occur slightly more often, but they are not very serious, while errors caused by an unnecessary refine can even for experts be very hard to detect.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jusaca
Posts: 5
Joined: Mon Nov 20, 2023 8:36 pm

Re: Multiple sketches in body seem to not make one solid body

Post by jusaca »

You guys get me confused.
I checked the exported step file with an online step viewer: https://sharecad.org/viewer

And as you can see in the screenshot it does indeed make a difference in the exported step file. Is this maybe a config thing on my side? I actually doubt that, as the linked article about the difference between Part and PartDesign is rather explicit :?
Attachments
Bild1.png
Bild1.png (428.11 KiB) Viewed 151 times
Post Reply