auto-adapting sill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-09
10:49 AM
- last edited on
‎2023-05-24
12:34 PM
by
Rubia Torres
I am trying to script some of my own windows and doors. I got some working, but I want to create a sill under my windows that grows or shrinks automatically if the window is further or nearer to the wall plane.
I see this happening with the standard windows that come with Archicad, but I cant find how they do this.
I do come across the term Glob_context, but how do I implement this if it is what I am looking for?
(ArchiCad 17)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-09 03:32 PM
Based on your description I am not sure exactly which Global Variables (in the GDL Reference Guide) you need, but some that might help are WALL_THICKNESS, which gives the thickness of the host wall, and WIDO_SILL which gives the setback of the window or door.
David
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-09 04:30 PM
I'll look into it first thing tomorrow morning!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-10 10:10 AM
Just add '+WIDO_SILL' to the coordinates of the (PRISM)sill that you want to keep constant in respect to the outer wall plane.
David, you are my hero today!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-10 11:53 AM
At the back of the sill, AC just continues the WALLHOLE.
I tried to close that gap with a block, with a height of WALL_THICKNESS, but for some reason this block will not show up in plan or 3D, only in 3D preview...
Any thoughts on this one?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-10 03:07 PM
PRISM, in the 3D Script, will only appear as part of the 3D model, not part of the 2D View (2D is separately scripted in the 2D Script). Maybe the WALLHOLE is not large enough to include both the window and sill, so the sill is buried in the Wall. Screen shots, and posting the code, would be helpful.
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.
David
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-14 11:39 AM
In the left section you can see my window+sill. But the backside off the wall should go up behind the sill, touching the window.
This gap is what I want to close with a box or prism, whatever works! As pointed out in red in the right section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-14 11:44 AM
-I first tried a prism, with added WALL_THICKNESS for coordinates, just like the sill was made. (somehow the '+WALL_THICKNESS' got deleted from the script)
-I now have a box, which shows fine in the 3d preview, but in the scene it will not show. (I wonder how it calculates the height in the preview, as there is no wall to give wall_thickness a number...)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-14 03:45 PM
Based on what you posted, I cannot see what the problem could be. You can zip the window object file and post it to the forum for better testing.
Rik wrote:The wall_thickness is taken from the current default value of the Wall Tool in the open ArchiCAD project file.
(I wonder how it calculates the height in the preview, as there is no wall to give wall_thickness a number...)
David
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2013-10-17 01:11 PM
When I save my object as an actual window, all sorts off code is added to the script. And somewhere it states the WALL_THICKNESS. But it does so twice...
I don't know why, so I don't want to delete one. So I just changed the latst one into WALL_THICKNESS = WALL_THICKNESS
This does the trick!