Window Depth in GDL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30
03:30 PM
- last edited on
2023-05-24
12:39 PM
by
Rubia Torres
2009-09-30
03:30 PM
My goal is to make the window so that the frame of the window is the same depth as the wall thickness and the sash stays the correct static distance. The sash is easy, but the frame is not. The frame depth challenge is due to differing wall thicknesses. So if the window is inserted into a 2x4 stud wall with a total thickness of 4 1/2" the frame will adjust accordingly. Likewise with a thicker/thinner wall thickness.
In the 2D view from the GDL subtypes, hotspots can automatically appear on both the interior and exterior face of the wall. If I knew how to set the frame depth to match those hotspots I would be all set.
Can anybody please assist me?
5 REPLIES 5
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30 04:13 PM
2009-09-30
04:13 PM
Hi,
You have to be lost in GDL (just a little).
First: You have to open the window object for edit GDL script.
Second: You have to find the part of the 3D script which make the frame.
Generally it's a "cprism_" command.
And there is the thickness of the cprism_ (wich was the thickness of your original slab (frame) in the plan view), changed its value to WALL_THICKNESS
Best Regards,
You have to be lost in GDL (just a little).
First: You have to open the window object for edit GDL script.
Second: You have to find the part of the 3D script which make the frame.
Generally it's a "cprism_" command.
And there is the thickness of the cprism_ (wich was the thickness of your original slab (frame) in the plan view), changed its value to WALL_THICKNESS
Best Regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30 04:21 PM
2009-09-30
04:21 PM
I am sorry, but I am not understanding your suggestions.
Maybe my approach is not right, but I am trying to write the script for a window. Are you suggesting that I create an object and save it as an object to find the method you mention?
Maybe my approach is not right, but I am trying to write the script for a window. Are you suggesting that I create an object and save it as an object to find the method you mention?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30 04:30 PM
2009-09-30
04:30 PM
Oh, i'm sorry.
If you write GDL scripts you have to use in many case global parameters.
So, the WALL_THICKNESS (or C_ ) is a global parameter of the wall thickness.
If You want that the frame thickness will be the value of the wall thickness than you have to use this global parameter.
If you write GDL scripts you have to use in many case global parameters.
So, the WALL_THICKNESS (or C_ ) is a global parameter of the wall thickness.
If You want that the frame thickness will be the value of the wall thickness than you have to use this global parameter.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30 05:22 PM
2009-09-30
05:22 PM
Thank you Endre!
You have taught me the importance Global Variables.
You have taught me the importance Global Variables.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-09-30 05:26 PM
2009-09-30
05:26 PM
Substantial resources for beginner GDL scripters include:
GDL Cookbook
http://www.archicad.ca/?p=84
GDL Handbook
http://www.cadimagetools.com/gdlbook.aspx
GDL Cookbook
http://www.archicad.ca/?p=84
GDL Handbook
http://www.cadimagetools.com/gdlbook.aspx
Dwight Atkinson