I'm not sure if I understand you correctly, but W+H are for Width and Height and if you click on the object on the tree the corresponding item should be selected and turn into green color. Guess that should do it. Regarding the sketch, my idea is, that you have not closed the lines properly. Just drag the object and you should see if it's opening. Good luckcram wrote: ↑Thu Jan 18, 2018 1:53 amI'm a little lost in what value refers to what in the preset. There is a diagram of them here https://www.freecadweb.org/wiki/Arch_Window
I apologise because this is probably very simple, however I cannot work out what each prefix refers to , in other word what is W1, W2, H1, H2, O1, O2 ?
Also I thought you were meant to be able to position the window by using the base sketch placement settings. When I adjust those only part of the window moves.
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12920 (Git)
Build type: Release
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/Australia (en_AU)
Thank you very much Willem, I can see now that any changes are force recomputer is required.Willem wrote: ↑Thu Jan 18, 2018 10:30 amHi, I made a video and here you see
- placing a preset window
- moving the window by moving the sketch
- after moving the view needs a forcerecompute
- changing the dimensions of the window by changing the dimensions in the sketch
- after these changes the view needs a forcereompute
- changing the thickness of the frame by editing the window
In my opinion it is a minor bug that forcerecompute is necessary after the changes, I can not remember or this was also in the past
Thank you again, Willem. I think I now understand the index of those items. I'll play around with it a bit more to confirm I understand it.Willem wrote: ↑Thu Jan 18, 2018 12:12 pmHi, I copied one of the images from the wiki page and at right you see the front view of the window. The width and height can be changed in the sketch as I showed in the video. Left you see a section of the window. Here you see the windowframe has a width of W1 and an offset to the wall of O1. In the video I changed the W1 value from 50 to 70. The O2 value e.g. is the thickness of the glass frame. I think you can understand the other values
Please do not bump a thread that is several years old as the software moves fast, and what you see in an older thread may no longer apply to your version.
Code: Select all
import math import FreeCAD import Arch import WorkingPlane pl = WorkingPlane.getPlacementFromFace(FreeCAD.ActiveDocument.Wall001.Shape.Faces) pl.Base = FreeCAD.Vector(-1513.708571084228,-700.6451144316903,600.0) win = Arch.makeWindowPreset("Open 2-pane", width=900.0, height=1000.0, h1=100.0, h2=100.0, h3=100.0, w1=200.0, w2=100.0, o1=0.0, o2=100.0, placement=pl) win.Hosts = [FreeCAD.ActiveDocument.Wall001]
This is not correct. The settings @jkabell refers to are automatically saved in V0.19. So the user should update.
Code: Select all
OS: Windows 8.1 (6.3) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.21857 (Git) Build type: Release Branch: master Hash: 750c169a6cb999f084915494f2fbec7c07297aae Python version: 3.6.8 Qt version: 5.12.1 Coin version: 4.0.0a OCC version: 7.3.0 Locale: Dutch/Netherlands (nl_NL)
Okay, so this is the reason the version of the software is very important.