how add custom windows in Preset library

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
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: how add custom windows in Preset library

Post by yorik »

One collaborative effort we could do at some point:

The doors and windows found in the FreeCAD library at https://github.com/FreeCAD/FreeCAD-libr ... al%20Parts should all be opened, and the appropriate sketch constraints renamed to "Height" and "Width" and resaved. That way, setting the height and width properties of the window works and they become parametric.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: how add custom windows in Preset library

Post by Roy_043 »

Those windows and doors are a bit of a mixed bag. IMO too much so. Ideally you would want to rework many of them.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: how add custom windows in Preset library

Post by yorik »

We definitely could, and add a bit of order, categories, etc.

But this is the same for any user-contributed resource (wikipedia, etc), the user input is often raw and you need some "moderating" work done. I'm sure we'll get there at some point, but at the moment it's best to let the library grow as much as possible I would say
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: how add custom windows in Preset library

Post by Roy_043 »

I do not know if this library has been updated recently (I have downloaded the zip last September). But some files do not work with the current (V0.19) version.

Example: "Double doors with transom and trims.FCStd":
  1. 38 redundant constraints for Sketch143.
  2. Total width cannot be changed.
  3. How to keep trim aligned with Sketch143 if the wall has a random direction?: https://forum.freecadweb.org/viewtopic.php?f=3&t=45035
Attachments
Double doors with transom and trims.FCStd
(35.5 KiB) Downloaded 32 times
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: how add custom windows in Preset library

Post by Creative25 »

I just tried to add a custom window to the Library.
When i press the Window Butten it is avalable and i can select it.
but then when i place it onto the wall and klick the mouse button to add it the panel for the window disappears and there is no windo on the wall.
All the other presets are still Working.
I am using a Macbook Pro with OSX 10.15.7

Is there something wrong with my custom Window?
NE2 copy.FCStd
(15.17 KiB) Downloaded 18 times
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: how add custom windows in Preset library

Post by chrisb »

Creative25 wrote: Wed May 25, 2022 4:01 pm I just tried to add a custom window to the Library.
Add your FreeCAD infos to help the helpers.
Do you use the latest 0.20?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: how add custom windows in Preset library

Post by Roy_043 »

The file works fine here.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.28918 (Git)
Build type: Release
Branch: master
Hash: e1f2685734
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods: 
Attachments
NE2-copy-works.FCStd
(27.16 KiB) Downloaded 22 times
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: how add custom windows in Preset library

Post by Creative25 »

I justdownloaded and Tried the file that works.
It does not work for me.

I am using the following version of Freecad

Code: Select all

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24366 (Git)
Build type: Release
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
Is there an issue with version 0.19 ?
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: how add custom windows in Preset library

Post by Creative25 »

I have upgrade to the Latest version

Code: Select all

[code]
OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.28929 (Git)
Build type: Release
Branch: master
Hash: 9251480ddb
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * parts_library
[/code]

This creates a new problem.
If I use the following folder

Code: Select all

$ROOT_DIR/Mod/Arch/Windows/Custom/
I cant find the Arch workbensch in the drop down menu.
If I delete the arch folder then the arch workbench is available again.
Do I first have to install the parts library?
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: how add custom windows in Preset library

Post by yorik »

Creative25 wrote: Fri May 27, 2022 6:39 am I cant find the Arch workbensch in the drop down menu.
If I delete the arch folder then the arch workbench is available again.
Do I first have to install the parts library?
That's weird... Any error appearing somewhere?
Post Reply