Why are windows sometimes placed upside down and back to front

A forum dedicated to the Draft, Arch and BIM workbenches development.
wearyhacker
Posts: 41
Joined: Fri May 18, 2018 9:07 pm

Why are windows sometimes placed upside down and back to front

Postby wearyhacker » Sat Nov 30, 2019 9:32 pm

OS: Ubuntu 19.10 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.7.5
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)

Build date 28/11/2019

In the attached sketch the wall segment based on segment 3 of the base wires has its inner and outer faces reversed with respect to other segments. How does this happen? How can I fix it? Has anyone else come across this.

It makes it very difficult to place door objects etc. in it.

Roger
Attachments
walltest.FCStd
(187.44 KiB) Downloaded 12 times
Last edited by wearyhacker on Sun Dec 08, 2019 3:37 pm, edited 2 times in total.
chrisb
Posts: 24399
Joined: Tue Mar 17, 2015 9:14 am

Re: Why do arch wall segements sometimes have inside and outside reversed.

Postby chrisb » Sat Nov 30, 2019 9:40 pm

Moved to Arch forum.
paullee
Posts: 2329
Joined: Wed May 04, 2016 3:58 pm

Re: Why do arch wall segements sometimes have inside and outside reversed.

Postby paullee » Sun Dec 01, 2019 12:24 am

wearyhacker wrote:
Sat Nov 30, 2019 9:32 pm

In the attached sketch the wall segment based on segment 3 of the base wires has its inner and outer faces reversed with respect to other segments. How does this happen? How can I fix it? Has anyone else come across this.

It makes it very difficult to place door objects etc. in it.

Roger
Not sure of your problem, I am working on FreeCAD_0.19-18694-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage, seem nothing 'wrong'.

Edge 3 of Wire
Screenshot from 2019-12-01 08-19-47.png
Screenshot from 2019-12-01 08-19-47.png (134.58 KiB) Viewed 436 times
.
Wall Align consistent
Screenshot from 2019-12-01 08-20-01.png
Screenshot from 2019-12-01 08-20-01.png (138.34 KiB) Viewed 436 times
vocx
Posts: 4073
Joined: Thu Oct 18, 2018 9:18 pm

Re: Why do arch wall segements sometimes have inside and outside reversed.

Postby vocx » Sun Dec 01, 2019 6:02 am

wearyhacker wrote:
Sat Nov 30, 2019 9:32 pm
...
In the attached sketch the wall segment based on segment 3 of the base wires has its inner and outer faces reversed with respect to other segments. How does this happen? How can I fix it? Has anyone else come across this....
It sounds as if you are drawing the lines in opposite directions. The line is different if you draw it left to right, than right to left.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
paullee
Posts: 2329
Joined: Wed May 04, 2016 3:58 pm

Re: Why do arch wall segements sometimes have inside and outside reversed.

Postby paullee » Sun Dec 01, 2019 8:12 am

vocx wrote:
Sun Dec 01, 2019 6:02 am
It sounds as if you are drawing the lines in opposite directions. The line is different if you draw it left to right, than right to left.
This is one thing I thought but look at his wall, he has a DWire, should have all segment in same direction
wearyhacker wrote:
Sat Nov 30, 2019 9:32 pm
...
In the attached sketch the wall segment based on segment 3 of the base wires has its inner and outer faces reversed with respect to other segments. How does this happen? How can I fix it? Has anyone else come across this....
@wearyhacker, did you do a Sketch as the base for the wall outline, then now convert it into a Wire by (bidirectional) Draft to Sketch function in the model posted here?
wearyhacker
Posts: 41
Joined: Fri May 18, 2018 9:07 pm

Re: Why are windows sometimes placed upside down and back to front

Postby wearyhacker » Sun Dec 01, 2019 8:31 am

I based the wall on a simple dwire. The only things I have done to the wire since have been done by the standard dwire editor. Before I dive to deep into the python console, are there any tools, scripts, out there that can examine the detailed make up of a dwire?

Thanks,

Roger

Sorry about the typo in the title!
Last edited by wearyhacker on Sun Dec 08, 2019 3:38 pm, edited 1 time in total.
paullee
Posts: 2329
Joined: Wed May 04, 2016 3:58 pm

Re: Why do arch wall segements sometimes have inside and outside reversed.

Postby paullee » Sun Dec 01, 2019 11:50 am

wearyhacker wrote:
Sun Dec 01, 2019 8:31 am
... the attached sketch the wall segment based on segment 3 of the base wires has its inner and outer faces reversed with respect to other segments.
First thing first, please clarify what do you mean above ? segment 3 ....reversed with resoect to other segment ?
wearyhacker
Posts: 41
Joined: Fri May 18, 2018 9:07 pm

Re: Why are windows sometimes placed upside down and back to front

Postby wearyhacker » Sun Dec 01, 2019 2:12 pm

Hi Paul,

Sorry about the lack of clarity. I have attached a couple of screenshots to illustrate.
Screenshot from 2019-12-01 12-30-55.png
Expected placement
Screenshot from 2019-12-01 12-30-55.png (196.18 KiB) Viewed 349 times
The screen capture appears to have lost the placement cursor. This shows at the bottom left of the window placement rectangle, as expected
Screenshot from 2019-12-01 12-31-14.png
Unexpected placement
Screenshot from 2019-12-01 12-31-14.png (196.18 KiB) Viewed 349 times
In this capture the placement cursor is at the top right.

That is the fundamental problem. It is not bad when placing windows, it just makes doing it accurately harder. For doors it just does not work they always end up upside down. My normal procedure for placing windows is to select the face I am working on and then create a custom working plane. I then create a proxy of the custom plane and move that to the origin I want to work from, normally the lower left corner of the face. However with this face the proxy ends up with the z axis pointing out of the screen, x pointing left and y pointing down. See below.
Screenshot from 2019-12-01 13-57-31.png
Working plane proxy
Screenshot from 2019-12-01 13-57-31.png (222.68 KiB) Viewed 349 times
One thing I notice is that my dwire is no longer a straightforward dwire, it has been upgraded to a FeaturePython object. I assume this is something to do with version 0.19.

Roger
Last edited by wearyhacker on Sun Dec 08, 2019 3:39 pm, edited 1 time in total.
wearyhacker
Posts: 41
Joined: Fri May 18, 2018 9:07 pm

Re: Why are windows sometimes placed upside down and back to front

Postby wearyhacker » Sun Dec 01, 2019 4:18 pm

Just noticed that the process I used to cut out the test example has somehow resulted in the wire being converted into a featurePython object. In the original file it was a Part::PartFeature. I have attached a new version which preserves the original object type.

roger
Attachments
walltest1.FCStd
New test file
(192.74 KiB) Downloaded 8 times
Last edited by wearyhacker on Sun Dec 08, 2019 3:40 pm, edited 1 time in total.
wearyhacker
Posts: 41
Joined: Fri May 18, 2018 9:07 pm

Re: Why are windows sometimes placed upside down and back to front

Postby wearyhacker » Sun Dec 01, 2019 4:44 pm

I am losing the will to live on this one. Can someone point me a python snippet that shows me how to get at the data from the original dwire. i.e. the ordered points list and any other info it may contain?

Thanks Roger
Last edited by wearyhacker on Sun Dec 08, 2019 3:40 pm, edited 1 time in total.