window sketch change: Bug or Feature?

A forum dedicated to the Arch module development
MIngB
Posts: 5
Joined: Sat Jan 28, 2017 5:01 pm

window sketch change: Bug or Feature?

Postby MIngB » Sun Mar 05, 2017 5:48 pm

Hi,

changing the basis of a window to another sketch, keeps the extrusion of previous sketch, while the position is set according to the new Sketch.
The attached picture shows the resulting offset Angle.

with regards,
MIngB

OS: "NAME=Gentoo"
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10423 (Git)
Build type: Release
Branch: (HEAD detached at 45bf8ed)
Hash: 45bf8ed91ed1bd65d7c5750685f8c435c9b092cf
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.9.1
Attachments
windowSketchChange.fcstd
(15.7 KiB) Downloaded 4 times
windowExtrusion.png
windowExtrusion.png (7.13 KiB) Viewed 194 times
MIngB
Posts: 5
Joined: Sat Jan 28, 2017 5:01 pm

Re: window sketch change: Bug or Feature?

Postby MIngB » Fri Mar 10, 2017 7:20 pm

Hi,

there's something related to that in https://forum.freecadweb.org/viewtopic. ... 4&start=10

Furthermore I got a lookup of FreeCAD (100% CPU forever) by changing the Base to a 90° rotated sketch.

In the example (attachment) this will happen changing Base of Window to Sketch003.

with regards


OS: "NAME=Gentoo"
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10460 (Git)
Build type: Release
Branch: (HEAD detached at 91c59c7)
Hash: 91c59c7910436c44ede608e29d9a90a287121a11
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.9.1
Attachments
windowSketchChange.fcstd
(19.79 KiB) Downloaded 2 times
User avatar
yorik
Site Admin
Posts: 8633
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: window sketch change: Bug or Feature?

Postby yorik » Wed Mar 15, 2017 2:35 pm

Both the base sketch and the window object have independent placements. When building the window, the base sketch is extruded in the Normal direction, then the placement of the window object is added to give the final position. So indeed if you change the base sketch, you can get unpredictable results as their both placements will be added together and form a new combination.

The best way to sort that out is probably to nullify the window placement (put everything to zero), then move it manually again if needed. You might also need to set he Normal property manually.