We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Window Depth in GDL

Kevin Motyka
Participant
I am trying to create a window that I like in GDL. I am not that familiar with GDL, however.

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
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,
Kevin Motyka
Participant
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?
Anonymous
Not applicable
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.
Kevin Motyka
Participant
Thank you Endre!

You have taught me the importance Global Variables.
Dwight
Newcomer
Substantial resources for beginner GDL scripters include:

GDL Cookbook

http://www.archicad.ca/?p=84


GDL Handbook

http://www.cadimagetools.com/gdlbook.aspx
Dwight Atkinson