Moving window in a host moves the host

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Moult
Posts: 321
Joined: Sat Jan 05, 2019 11:46 am
Contact:

Moving window in a host moves the host

Post by Moult »

I have a very simple default window placed inside a wall as its host. I have the window selected in the tree. I have my working plane aligned to the wall that the window is placed in. If I use the move command to move the window, the entire wall moves with it. Is this expected behaviour? How do I _just_ move the window within the same wall?
2019-05-18-221333_795x348_scrot.png
2019-05-18-221333_795x348_scrot.png (35.06 KiB) Viewed 1429 times
Note that If I move the window's _sketch_ (Sketch001), then the window moves as expected, and I can recompute the wall to update the penetration hole. This is desired behaviour (except for the need to recompute, which is a hassle).

Alternatively, I have found that I can unhost the window, move the window, and then rehost the window. It's slow, but it works.

Running git freecad:

Code: Select all

OS: Gentoo/Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16790 (Git)
Build type: Unknown
Branch: master
Hash: 15f440525e59c3caf89f847a490981abf5a45f8f
Python version: 3.6.5
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Last edited by Moult on Sun May 26, 2019 3:37 am, edited 2 times in total.
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Moving window in a host moves the host

Post by vocx »

Moult wrote: Sat May 18, 2019 12:19 pm ...
If I use the move command to move the window, the entire wall moves with it. Is this expected behaviour?
I think this may be unexpected from a user's perspective. It may be a consequence of setting the Host property. In that case the Window becomes part of the Wall, so moving either will move the entire assembly. Maybe it could be considered normal, or maybe it could be improved to move the window only within the Host.
...
How do I _just_ move the window within the same wall?

Note that If I move the window's _sketch_ (Sketch001), then the window moves as expected, and I can recompute the wall to update the penetration hole. This is desired behaviour (except for the need to recompute, which is a hassle).
Yes, you have to move the sketch. That's the "normal" way to do it, I think.

And yes, in past threads Yorik has admitted that there are some instances where changes in the elements don't trigger a recompute.

See for an example, [Bug] Arch Wall doesn't update itself when a Window is removed from it.

Also see the tutorial: Tutorial custom placing of windows and doors. It explains a bit about positioning the Arch Window object.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Moult
Posts: 321
Joined: Sat Jan 05, 2019 11:46 am
Contact:

Re: Moving window in a host moves the host

Post by Moult »

I see. I will move the sketch. This topic is solved. Thanks :)
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: [SOLVED] Moving window in a host moves the host

Post by chrisb »

You can mark a topic by prepending [Solved] to the subject of the first post in the topic.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: [SOLVED] Moving window in a host moves the host

Post by bitacovir »

chrisb wrote: Sat May 18, 2019 10:45 pm You can mark a topic by prepending [Solved] to the subject of the first post in the topic.
I did not know the post's author can/must do that. I thought it was the administrator's privilege.
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [SOLVED] Moving window in a host moves the host

Post by vocx »

bitacovir wrote: Sat May 18, 2019 11:50 pm I did not know the post's author can/must do that. I thought it was the administrator's privilege.
The author "can" change the first post title to add "Solved".

However, the author "must"? I don't think it's required.

Incidentally, once I asked a moderator to add "Solved" to a thread of which I wasn't the author, because the last post solved the issue. The moderator said, "nah, we don't do this here". LOL. It seems the policy changed recently, oh, well.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
paullee
Veteran
Posts: 5119
Joined: Wed May 04, 2016 3:58 pm

Re: [SOLVED] Moving window in a host moves the host

Post by paullee »

Different Findings :) ?

FreeCAD Version

FreeCAD_0.19-16694-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage on Fedora 29

Findings
  1. Select the Window Object itself
  2. Move the Window with Draft Move
  3. Window object move as expected
  4. The Host Wall does not move

    Alternatives Arrangement of Windows being 'Hosted'
    ...
  5. The default Window now has a Host properties and it is automatically set to the hosting wall if Window Gui is used
  6. The 'old' behaviour is that the Wall has a Subtraction Property that Window is included
  7. ( ... as Host property in window was not introduced.... and the relationship between parent and child is now inverted)
  8. I clear up the Window Host property and add the Window in the Wall Subtration
  9. Draft move the window
  10. Still the Window object move but not the Wall object
Screenshot from 2019-05-19 09-08-01.png
Screenshot from 2019-05-19 09-08-01.png (214.31 KiB) Viewed 1382 times
Screenshot from 2019-05-19 08-51-03.png
Screenshot from 2019-05-19 08-51-03.png (200.36 KiB) Viewed 1382 times
Screenshot from 2019-05-19 08-57-31.png
Screenshot from 2019-05-19 08-57-31.png (190.13 KiB) Viewed 1382 times
Attachments
Test_ Arch Window_ MoveWindowMoveHost_ Q.fcstd
(18.81 KiB) Downloaded 28 times
Test_ Arch Window_ MoveWindowMoveHost_2_ Q.fcstd
(19.7 KiB) Downloaded 26 times
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [SOLVED] Moving window in a host moves the host

Post by yorik »

Definitely one should be able to move the window without moving the host wall :)

I've just recreated the same setup as yours @moult (a simple wall with a window inside), but everything seems to work normally... If you can reproduce it, mind to attach a file with the issue?
User avatar
Moult
Posts: 321
Joined: Sat Jan 05, 2019 11:46 am
Contact:

Re: [SOLVED] Moving window in a host moves the host

Post by Moult »

Attached.

1. Open file
2. Select window (not sketch or rectangle, but Window)
3. Draft move (M, V) the window to another location on the same wall
4. Tada: entire wall moves.

Removed "[SOLVED]" from topic as this issue is now unresolved again.
Attachments
wall-window-test.FCStd
(21.5 KiB) Downloaded 48 times
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Moving window in a host moves the host

Post by yorik »

This time the baby is yours I'm afraid :D
it happens when the "Move Base" property of the wall is set to True
Post Reply