Find the next step in your career as a Graphisoft Certified BIM Manager!

Wishes
Post your wishes about Graphisoft products: Archicad, BIMx, BIMcloud, and DDScad.
SOLVED!

Right Angle Triangle Window

JaredBanks
Mentor

How is it possible that in 2022 / Archicad 26 there is still not an out of the box right angle window? The Triangle Fixed window [Moderator: in the USA library] can not have a vertical side. This is super annoying. The only way to achieve this basic window shape (without paying for a 3rd party window like Cadimage) is to use the ancient FreeFormWindow, which is missing tons of features and is surely going to stop working at some point. Can whoever is in charge of the libraries, just spend like 5 minutes and get us this window?Screen Shot 2022-11-16 at 9.45.53 AM.png

Jared Banks, AIA
Shoegnome Architects

Archicad Blog: www.shoegnome.com
Archicad Template: www.shoegnome.com/template/
Archicad Work Environment: www.shoegnome.com/work-environment/
Archicad Tutorial Videos: www.youtube.com/shoegnome
4 ACCEPTED SOLUTIONS

Accepted Solutions
Solution

Yeah, when I saw your post I had to test it to see. And to think that it doesn't work in the US library is really disappointing, to say the least.

Nathan Hildebrandt fraia
Director | Skewed
AC6 - AC27 | WIN 11 | i9-10900K, 3.7Ghz | 32GB Ram | NVIDIA GeForce RTX
3070

View solution in original post

Solution
AllanP
Advocate

in the Australian library that ships with Archicad 25, it works,

AllanP_0-1668638048957.png

AllanP_1-1668638112099.png

 

but way back in Archicad 22 it was still broken.

AllanP_2-1668638176120.png

AllanP_4-1668638248373.png

the offending lines of script are divide by zero for the triangle window

AllanP_5-1668638297815.png

 

add an exception for divide by zero that has been added in the Australian library for 25/26

AllanP_6-1668639058800.png

line 443

if iWindowShape = SHAPE_TRIANGLE then
if abs(ac_wallhole_width / 2 + gs_posTopEdge_triangle) < EPS then
      tan_LeftSide = 0
else


if abs(ac_wallhole_width / 2 - gs_posTopEdge_triangle) < EPS then
     tan_RightSide = 0
else

 

and a bit futher down find any other lines that mention

if iWindowShape = SHAPE_TRIANGLE then

There are only 5 short groups of script that are for the triangle window

and add exceptions for divide by zero

 

line 876

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
    _oleft = 0
else

 

line 886

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_RightSide) < EPS then
    _oright = 0
else

 

line 1437

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
    _oleft = 0
    _oright = -rightJamb / sin(atn(tan_RightSide))
    _xTop = 0
    _yTop = (ac_wallhole_width + _oright) * tan_RightSide
else
    if abs(tan_RightSide) < EPS then
         _oleft = -leftJamb / sin(atn(tan_LeftSide))
        _oright = 0
       _xTop = ac_wallhole_width + _oleft
       _yTop = _xTop * tan_LeftSide
   else

 

line 5387

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
     _oleft = 0
     _oright = -offRight / sin(atn(tan_RightSide))
     _xTop = 0
     _yTop = (sideLeft + sideRight + _oright) * tan_RightSide
     px1 = (sideLeft + sideRight) / 2 + _oright - (offBottom / tan_RightSide) * not(gs_stack_bottom)
     px2 = -(sideLeft + sideRight) / 2
else
     if abs(tan_RightSide) < EPS then
          _oleft = -offLeft / sin(atn(tan_LeftSide))
         _oright = 0
          _xTop = sideLeft + sideRight + _oleft
          _yTop = _xTop * tan_LeftSide
          px1 = (sideLeft + sideRight) / 2
          px2 = -(sideLeft + sideRight) / 2 - _oleft + (offBottom / tan_LeftSide) * not(gs_stack_bottom)
     else

 

 

 

 

 

Someone in Oz has already fixed.

 

I have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 27
Member of Architalk since 2003, but missed the migration to Graphisoft.
(where have all my original posts gone?)

View solution in original post

Solution

WallholeCut.gsm is fixed in the USA library as well.

 

They are restricting 'tec' (the length parameter for peak distance from center) with a VALUES RANGE in the macro gs_general_sw_macro_USA. If you change that statement's parens to brackets (i.e., <= instead of <), you can make the angle 90º but you will get more divide by zero in gs_general_sw_macro_USA, starting here, but I bet there are more exceptions needed a few lines later:

 

Screen Shot 2022-11-17 at 11.37.32 AM.png

 

Fix those exceptions, save the macro with a modified name, change the macro call in the Window proper to that name. Save-as the window as well.

 

Way out of scope for an end user, IMO. I agree that it's about 5 minutes of work for GS.

 

It's a few more minutes to provide a checkbox for 'Right Triangle'. 🤗

James Murray

Archicad 25 • Rill Architects • macOS • OnLand.info

View solution in original post

Solution

This is a saved-as copy of the window, with the macros worked thru as far as needed (window & trim), and the 'angle' locked to 90º. 

James Murray

Archicad 25 • Rill Architects • macOS • OnLand.info

View solution in original post

16 REPLIES 16
Karl Ottenstein
Moderator

It is pretty weird for sure after all these years! The parameter shown in your screenshot for the location of the peak can be adjusted vanishingly close to ½ the window width to approximate a right angle window in a pinch for preliminary design work.  Depending on the scale of the drawings, it might be enough to fake CDs.

 

Attached, I dragged the closest approx to a right triangle to the edge of a wall to show the small (approx 1/4" for a 40" wide window) gap showing in the stucco due to the inability to set the top vertex exactly above the bottom one.  I turned on casing to make this really obvious. The fact that they disallow two vertices from occupying the same X coordinate position (per se) tells us that the mathematical construction method used would have to be changed to allow this to be a more flexible window... so I'd guess it is more than 5 minutes work, but work that should be done nonetheless.

 

Screen Shot 2022-11-16 at 2.17.24 PM.jpg

 

Screen Shot 2022-11-16 at 2.16.04 PM.jpg

One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.5, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
JaredBanks
Mentor

It's so frustrating to take that top vertex to 1/2" then 1/4" then a 1/16"... so close to zero and yet, nope! I agree for SD, it's probably fine. But I refuse! 🙂

Jared Banks, AIA
Shoegnome Architects

Archicad Blog: www.shoegnome.com
Archicad Template: www.shoegnome.com/template/
Archicad Work Environment: www.shoegnome.com/work-environment/
Archicad Tutorial Videos: www.youtube.com/shoegnome

Maybe it is an imperial thing. I just checked in the INT version and I can get a right-angle triangle window from that exact object. 

 

NathanHildebrandt_0-1668637840617.png

 

Nathan Hildebrandt fraia
Director | Skewed
AC6 - AC27 | WIN 11 | i9-10900K, 3.7Ghz | 32GB Ram | NVIDIA GeForce RTX
3070

I do not have the words to express how ridiculous this is. In the USA library, we can not do that.

Jared Banks, AIA
Shoegnome Architects

Archicad Blog: www.shoegnome.com
Archicad Template: www.shoegnome.com/template/
Archicad Work Environment: www.shoegnome.com/work-environment/
Archicad Tutorial Videos: www.youtube.com/shoegnome
Solution

Yeah, when I saw your post I had to test it to see. And to think that it doesn't work in the US library is really disappointing, to say the least.

Nathan Hildebrandt fraia
Director | Skewed
AC6 - AC27 | WIN 11 | i9-10900K, 3.7Ghz | 32GB Ram | NVIDIA GeForce RTX
3070
Solution
AllanP
Advocate

in the Australian library that ships with Archicad 25, it works,

AllanP_0-1668638048957.png

AllanP_1-1668638112099.png

 

but way back in Archicad 22 it was still broken.

AllanP_2-1668638176120.png

AllanP_4-1668638248373.png

the offending lines of script are divide by zero for the triangle window

AllanP_5-1668638297815.png

 

add an exception for divide by zero that has been added in the Australian library for 25/26

AllanP_6-1668639058800.png

line 443

if iWindowShape = SHAPE_TRIANGLE then
if abs(ac_wallhole_width / 2 + gs_posTopEdge_triangle) < EPS then
      tan_LeftSide = 0
else


if abs(ac_wallhole_width / 2 - gs_posTopEdge_triangle) < EPS then
     tan_RightSide = 0
else

 

and a bit futher down find any other lines that mention

if iWindowShape = SHAPE_TRIANGLE then

There are only 5 short groups of script that are for the triangle window

and add exceptions for divide by zero

 

line 876

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
    _oleft = 0
else

 

line 886

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_RightSide) < EPS then
    _oright = 0
else

 

line 1437

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
    _oleft = 0
    _oright = -rightJamb / sin(atn(tan_RightSide))
    _xTop = 0
    _yTop = (ac_wallhole_width + _oright) * tan_RightSide
else
    if abs(tan_RightSide) < EPS then
         _oleft = -leftJamb / sin(atn(tan_LeftSide))
        _oright = 0
       _xTop = ac_wallhole_width + _oleft
       _yTop = _xTop * tan_LeftSide
   else

 

line 5387

if iWindowShape = SHAPE_TRIANGLE then

if abs(tan_LeftSide) < EPS then
     _oleft = 0
     _oright = -offRight / sin(atn(tan_RightSide))
     _xTop = 0
     _yTop = (sideLeft + sideRight + _oright) * tan_RightSide
     px1 = (sideLeft + sideRight) / 2 + _oright - (offBottom / tan_RightSide) * not(gs_stack_bottom)
     px2 = -(sideLeft + sideRight) / 2
else
     if abs(tan_RightSide) < EPS then
          _oleft = -offLeft / sin(atn(tan_LeftSide))
         _oright = 0
          _xTop = sideLeft + sideRight + _oleft
          _yTop = _xTop * tan_LeftSide
          px1 = (sideLeft + sideRight) / 2
          px2 = -(sideLeft + sideRight) / 2 - _oleft + (offBottom / tan_LeftSide) * not(gs_stack_bottom)
     else

 

 

 

 

 

Someone in Oz has already fixed.

 

I have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 27
Member of Architalk since 2003, but missed the migration to Graphisoft.
(where have all my original posts gone?)
JaredBanks
Mentor

Hopefully someone at GS with authority in the USA library sees this and fixes it.

Jared Banks, AIA
Shoegnome Architects

Archicad Blog: www.shoegnome.com
Archicad Template: www.shoegnome.com/template/
Archicad Work Environment: www.shoegnome.com/work-environment/
Archicad Tutorial Videos: www.youtube.com/shoegnome

Another reason I went to the dark side of gdl all the things.

standard window in GER lib.

w01.png