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.

Storefront window joining at 90°

Anonymous
Not applicable
When one leg of two store front windows joining is less than about 1.5 feet the angle of the miter increases above 90°.
If you open the window as an object and go the the end of master scripts and turn off ANGLE MAX
the problem goes away and it will stay at 90°. What problems should I expect by having ANGLE MAX turned off by placing ! at the beginning of each line?


! ANGLE MAX !!

!aps=(a-(gs_ver_gnum+1)*gs_grid_w)/2
!yps=((-2*(gs_fthk+fr_os*2)*(gs_frame_width/2)**2)-SQR(4*(gs_frame_width/2)**4*(gs_fthk+fr_os*2)**2-4*((gs_frame_width/2)**2-aps**2)*(gs_frame_width/2)**2*(aps**2+(gs_fthk+fr_os*2)**2)))/(2*((gs_frame_width/2)**2-aps**2))

!sps=90-ASN((gs_frame_width/2)/yps)

!IF gs_cla <=0 THEN PARAMETERS gs_cla=0.01
!IF gs_cra <=0 THEN PARAMETERS gs_cra=0.01

!IF gs_cla/2<sps THEN PARAMETERS gs_cla=sps*2
!IF gs_cra/2<sps THEN PARAMETERS gs_cra=sps*2
!IF gs_cla/2>180-sps THEN PARAMETERS gs_cla=360-sps*2
!IF gs_cra/2>180-sps THEN PARAMETERS gs_cra=360-sps*2

!! END OF ANGLE MAX !!
1 REPLY 1
Aussie John
Newcomer
there may be other scripts in the any other the following script windows that may need to be turned off too
2d script
Master script
3d script
Parameter script

When omitting script parts make sure they dont contain any unresolved transformations eg if an "add" is used a corresponding "del" might be needed or just leave the transformation in.

Regardless save as a different library part and see what happens!!

You will need a "!" as I can see the third line doesnt have one (but that may be due to text wrapping in the browser.

Also, you can also use a "goto" to jump past the offending script
eg
goto 10:
script to jump
10:

Make sure the label (number) is not used elsewhere or you will get an error
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]