The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Topics specific to the scripting and development of Library Parts and Libraries using the Geometric Description Language – GDL. (Example: How do you use “REQUEST” GDL commands?)

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, Akos Somorjai, Csilla Mai, Peter Baksa

#312655
Hi,
When I model a window and save the library part as a window... is there a way to open the object and hard code opening direction so I can use that parameter in schedules and labels?
Best,
Mats


EDIT: I was really clumsy writing orientation as in north south... when I was meaning hanging/direction left/right etc. Sorry for that!
Last edited by Mats_Knutsson on Wed Jul 01, 2020 12:09 pm, edited 1 time in total.
#312656
Short answer - no.

Longer answer - when you place a window you choose the position in the wall (the reveal side) and then the direction the window faces (inside/outside) and orientation (left/right).
So even though you create a custom window that opens on one side, you can still place it with the orientation so it opens from the other side.
So it can still be a left or right handed window.
The autotext and schedules use this orientation and it is not parameter or variable you can set as a user as it simply reflects how you place the window in plan.


Barry.
#312657
similar to what Barry said: short answer - no

I use to have the orientation populate a parameter but that was when it was ok to use GLOB_NORTH_DIR in the parameter script.
I still have the script in Infinite Openings but as you can see its hidden because the GLOB_NORTH_DIR causes an error:
Code: Select all
!!!WINDOW ORIENTATION
!ANGLE1 = GLOB_NORTH_DIR
!ANGLE2 = WALL_DIRECTION + SYMB_ROTANGLE + 90 !The Window is 90 deg perpendicular to the wal
! 
!ANGLE2 = ANGLE2 % 360
! 
!ANGLE_DIFF = ANGLE1 - ANGLE2
!IF ANGLE_DIFF > 180 THEN
!                ANGLE_DIFF = ANGLE_DIFF - 360
!ELSE
!                IF ANGLE_DIFF < -180 THEN ANGLE_DIFF = ANGLE_DIFF + 360
!ENDIF
! 
!WD_ORIENT = ""
! 
!IF ABS(ANGLE_DIFF) <= 22.5 THEN WD_ORIENT = "N"
!IF ANGLE_DIFF > 22.5 AND ANGLE_DIFF <= 67.5 THEN WD_ORIENT = "NE"
!IF ANGLE_DIFF > 67.5 AND ANGLE_DIFF <= 112.5 THEN WD_ORIENT = "E"
!IF ANGLE_DIFF > 112.5 AND ANGLE_DIFF <= 157.5 THEN WD_ORIENT = "SE"
!IF ANGLE_DIFF > 157.5 AND ANGLE_DIFF <= 180 THEN WD_ORIENT = "S"
!IF ANGLE_DIFF < -22.5 AND ANGLE_DIFF >= -67.5 THEN WD_ORIENT = "NW"
!IF ANGLE_DIFF < -67.5 AND ANGLE_DIFF >= -112.5 THEN WD_ORIENT = "W"
!IF ANGLE_DIFF < -112.5 AND ANGLE_DIFF >= -157.5 THEN WD_ORIENT = "SW"
!IF ANGLE_DIFF < -157.5 AND ANGLE_DIFF >= -180 THEN WD_ORIENT = "S"
! 
!PARAMETERS gs_list_custom5 = WD_ORIENT
#312667
Barry Kelly wrote:
Wed Jul 01, 2020 8:45 am
Short answer - no.

Longer answer - when you place a window you choose the position in the wall (the reveal side) and then the direction the window faces (inside/outside) and orientation (left/right).
So even though you create a custom window that opens on one side, you can still place it with the orientation so it opens from the other side.
So it can still be a left or right handed window.
The autotext and schedules use this orientation and it is not parameter or variable you can set as a user as it simply reflects how you place the window in plan.


Barry.
The issue arises when we have double windows where we want P as in pair instead of left or right. It could be pretty much anything. We've solved it by not using the automatic orientation but instead using a manual property. This is not fun on the larger projects with gazillions of objects.
#312711
There was a time when you could set custom values for the orientation, but that doesn't seem to work any more.

So in your case you could have you could have "L" and "R" both changed to "P" (of course this would affect all placed windows even if not in a pair - if it worked).
But it doesn't seem to work any more.
It used to in older versions I am sure.
But definitely not since 22.



There is maybe another parameter but it seems to only work with doors.

ac_OpeningSide

I have not really investigated it, but here is a post where it was discussed.

viewtopic.php?f=6&t=66085


Barry.
Attachments
window_orientation_5.jpg
#312722
Barry Kelly wrote:
Thu Jul 02, 2020 2:40 am
There was a time when you could set custom values for the orientation, but that doesn't seem to work any more.

So in your case you could have you could have "L" and "R" both changed to "P" (of course this would affect all placed windows even if not in a pair - if it worked).
But it doesn't seem to work any more.
It used to in older versions I am sure.
But definitely not since 22.



There is maybe another parameter but it seems to only work with doors.

ac_OpeningSide

I have not really investigated it, but here is a post where it was discussed.

viewtopic.php?f=6&t=66085


Barry.
You're right it doesn't seem to work in 22. For "normal" windows there is an automatic/individual setting and that's what I would like for our custom ones as well but I have no idea how to do it or even if it's possible. Need to check with GS.
#312728
Mats_Knutsson wrote:
Thu Jul 02, 2020 7:35 am
You're right it doesn't seem to work in 22. For "normal" windows there is an automatic/individual setting and that's what I would like for our custom ones as well but I have no idea how to do it or even if it's possible. Need to check with GS.

This is interesting - I will try to look into this further but not having much luck when I open the objects - but I never have much luck with GS objects.

It seems in the "Descriptions" area of the settings you can choose between "Automatic" , "Reversed", or "Custom" for Window Orientation Definition.
This works for doors but not for windows.

In the attached image I have simply added an autotext label for "Orientation".

window_orientation_6.jpg

But when I open the object script I don't see the 'Window Orientation Definition' anywhere.
I fact the entire second half of the description list from the window settings is not there in the window script.
I wonder where they come from?
It seems this missing bit is what you need to add to your custom window.

window_orientation_7.jpg

Barry.