Adding window breaks other extruded items in cut

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!
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Adding window breaks other extruded items in cut

Post by cox »

Some times FreeCAD does not like lines planes, lines etc from two different parts to occupy the same space when cutting or merging parts.

In the file "demo_window B + wall2+window"

If you change the extruded length from 200.00 to 200.01 you make sure that you cut away more than absolutely necessary. And you remove one place where the wall face and cylinder face are coplanar.

This works for me.
Need help? Feel free to ask, but please read the guidelines first
JLB85FR
Posts: 76
Joined: Fri Jan 15, 2016 7:08 pm
Location: Vendée - France

Re: Adding window breaks other extruded items in cut

Post by JLB85FR »

Hi Cox,
thanks for your tip.
I tried it, yes it works, (apparently), the error disappears when I set the length to 200.01 or more, but if I save the file, and reopen it again ,the error is still there...
:cry:
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Adding window breaks other extruded items in cut

Post by cox »

Sorry, I have no answer for you when it comes to the error coming back after reopening the file. It happens for me as well

But when I try, it seams like I have better luck using Part design and pocket a sketch through the wall.
Need help? Feel free to ask, but please read the guidelines first
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Adding window breaks other extruded items in cut

Post by bejant »

The following quote is from this post:
JLB85FR wrote:Hello,
I've tried many releases of version 0.16, but still not working with extrudes.
Hi, when I open the file you attached in that post, "Extrude" has an error - it shows the red exclamation point in the hierarchy tree. Running the Macro "ForceRecompute" fixes that problem.

But instead you might want to select Extrude in the hierarchy tree, change the Data Tab > Solid Property from False to True, and see if that helps anything...

Edit: fixed the hyperlink, which had contained a reply mode.
Last edited by bejant on Tue Feb 09, 2016 5:30 pm, edited 1 time in total.
JLB85FR
Posts: 76
Joined: Fri Jan 15, 2016 7:08 pm
Location: Vendée - France

Re: Adding window breaks other extruded items in cut

Post by JLB85FR »

Hi,
thanks for your reply
yes, setting extrude solid property to true (or just changing from true to false or false to true) makes the error disapear, but if you save the design, close and reopen it, the error is still there.
Where can I find this macro ? it is not provided with the application..
JLB85FR
Posts: 76
Joined: Fri Jan 15, 2016 7:08 pm
Location: Vendée - France

Re: Adding window breaks other extruded items in cut

Post by JLB85FR »

I found it
# -*- coding: utf-8 -*-
# Force Recompute
# macro provided by shoogen

import FreeCAD
for obj in FreeCAD.ActiveDocument.Objects:
obj.touch()
FreeCAD.ActiveDocument.recompute()

but it has the same effet as changing properties: error disapears, save, close and reopen: error comes back !
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Adding window breaks other extruded items in cut

Post by bejant »

JLB85FR wrote:it has the same effet as changing properties: error disapears, save, close and reopen: error comes back !
Yes, I see. No matter what I do I cannot solve the error in Extrude. It always comes back when the FreeCAD document is reopened. At first I thought that the Height Property of Rectangle being -300mm might be the cause, but changing it to 300mm didn't work.
JLB85FR
Posts: 76
Joined: Fri Jan 15, 2016 7:08 pm
Location: Vendée - France

Re: Adding window breaks other extruded items in cut

Post by JLB85FR »

Nice, the bug (#2449) has been fixed in release 0.16.6420.
thanks a lot Yorik !
;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Adding window breaks other extruded items in cut

Post by Kunda1 »

JLB85FR wrote:Nice, the bug (#2449) has been fixed in release 0.16.6420.
thanks a lot Yorik !
;)
Did solving issue #2449 also fix issue #2403?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply