BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Sklight tool object -what command cuts the hole in the roof

Anonymous
Not applicable
Hello,
I looked at the 3D script of one of the skylight tool objects
to find the equivalent command to wallhole that cuts the
hole in the roof. I looked in the GDL manual but could not find
such a command. I noticed that the subtype of the roof tool
object was "Skylight" but there is no "Skylight" subtype in
the list of subtypes.

Does anyone know what GDL command cuts the hole ?
Perhaps it is not a command but some internal function
like what cuts the hole for a window or door when the
3D script does not contain a wallhole command.
Thank you,
Peter Devlin
17 REPLIES 17
Erika Epstein
Booster
In the subtype choices, go to Opening>roof Opening>Skylight.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
Hello Erika,
Thanks, I found it. I opened a new object,
changed its subtype to "Skylight", and
opened the 3D script window and Archicad promptly crashed.
This has happened twice. I was trying to make a very
simple object to test if and how a hole is made
in the roof. I guess I won't be able to because of this
crash behavior.
Thanks,
Peter Devlin
Anonymous
Not applicable
Just for fun I tried that, changing an objects subtype to skylight to see what happened. It did not crash AC (14). However it did not cut hole in roof.
Object was made with Objective, material glass, and had to use seo to cut hole.
MY SKYLIGHT OBJECT-1.png
Anonymous
Not applicable
Hello Lec,
I am sure it is not as simple as that.
I am assuming you have to use some of the
obligatory parameters in the 3D script to cut the hole.
Of course, I don't know for sure, which is
why I am asking the question.
Peter Devlin
Erika Epstein
Booster
Peter wrote:
I guess I won't be able to because of this
crash behavior.
Peter Devlin
Is this one of the undocumented new features?
Sorry to hear about the crashes.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
Peter wrote:
Hello Lec,
I am sure it is not as simple as that.
I am assuming you have to use some of the
obligatory parameters in the 3D script to cut the hole.
Of course, I don't know for sure, which is
why I am asking the question.
Peter Devlin
Sorry I should have made it more clear that the main thing I was responding to was that AC did not crash when I changed and objects subtype to skylight.
Also did not crash when I opened the 3d script window of the object with subtype set as skylight.
For whatever small amount that's worth.
Anonymous
Not applicable
Hello Erika,
I checked in my AC 12 demo version and AC did not crash
when opening the 3D script window, so I guess it is
an AC 10 thing. Because it is the AC 12 demo version
I am unable to save the lib part for testing on a roof.
I did notice that the AC 12 version of the roof window
lib part's parameter list is different than the AC 10 version.
I also noticed some other strangeness, like even though
certain parameters are not hidden in the parameter list
they do not show in the lib part's setting dialog.
There is something strange about this subtype.
Thanks,
Peter Devlin
Anonymous
Not applicable
Hello,

I think just making an object with "Skylight"-subtype should be enough to make a hole, even if no code added at all.

If you want to control the edge angles then new parameters should be added as mentioned in the "Fix named optional parameters"-documentation found here

(For other versions than 13 just change the version number in the link).


3. Parameters for add-ons

Add-ons can get values from library parts through parameters with predefined name and function. The list of such parameters in connection of the AC-package add-ons follow below.

3.1. Parameters of Skylight add-on

Hole edge cut manipulation

ac_edge_lower_type - integer
Cut type of the lower edge: 0 - Vertical, 1 - Perpendicular, 2 - Horizontal, 3 - Custom
ac_edge_lower_angle - angle
Angle of the cut of the lower edge, if ac_edge_lower_type is 3. The value range is [1-179] degrees, 90 is the perpendicular case.
ac_edge_upper_type - integer
Cut type of the upper edge: 0 - Vertical, 1 - Perpendicular, 2 - Horizontal, 3 - Custom
ac_edge_upper_angle - angle
Angle of the cut of the upper edge, if ac_edge_upper_type is 3. The value range is [1-179] degrees, 90 is the perpendicular case.


I made a demo object with just 2D code to visualize the object in the plan, nothing else. The hole appears automatically.


hotspot2 0, (b*cos(ac_roofang))/2

line2 -a/2, 0,  a/2, b*cos(ac_roofang)
line2  a/2, 0, -a/2, b*cos(ac_roofang)

rect2 -a/2, 0, a/2, b*cos(ac_roofang)!<---rect2 is not necessary, AC draws the edge automatically




Hope this helps.

Regards, Juha
Skylight.png
Anonymous
Not applicable
The demo object is here, the edge angle parameters are added.

Regards, Juha
Learn and get certified!