Request(?) opening direction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 09:34 AM - last edited on ‎2024-09-26 01:29 PM by Doreena Deng
Hi
I'm creating a label that shows the 'opening centerheight value' of an opening (created with the opening tool) in a wall (horizontal direction). This works fine. But openings can also be used in slabs (vertical direction) and I want to use the same label for these. If 'Opening centerheight values' is used in slabs the label goes corrupt and I actualy dont need this value in slabs. So if i can know the direction of a opening, i can exclude this part of the script.
Is there a way to find out in wich direction the opening is used?
For now i'm using a boolean in the label properties, I hope I can do it automaticly.
WIN 11
GDL
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 09:45 PM
Why did you double post? Anyway, gonna answer here.
So, first of all, no. Sadly there is no (known to me) way to determine in what element the labeled opening sits in. I hope this will be available at some point.
Until then however there is a bit of a stupid workaround: Use "haskey(OPENING_CENTERHEIGHT_VALUES.toProjectZero)
". If resolving to NO it is an opening in slab.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 02:16 PM
Hi
For labels you must use GLOB_ELEM_TYPE to define the different values
! ==============================================================================
! values for GLOB_ELEM_TYPE
! ==============================================================================
ELEM_TYPE_LABEL = 0
ELEM_TYPE_OBJECT = 1
ELEM_TYPE_LAMP = 2
ELEM_TYPE_WINDOW = 3
ELEM_TYPE_DOOR = 4
ELEM_TYPE_WALL = 5
ELEM_TYPE_COLUMNPARENT = 6
ELEM_TYPE_SLAB = 7
ELEM_TYPE_ROOF = 8
ELEM_TYPE_FILL = 9
ELEM_TYPE_MESH = 10
ELEM_TYPE_ZONE = 11
ELEM_TYPE_BEAMPARENT = 12
ELEM_TYPE_CW = 13
ELEM_TYPE_CWFRAME = 14
ELEM_TYPE_CWPANEL = 15
ELEM_TYPE_CWJUNCT = 16
ELEM_TYPE_CWACC = 17
ELEM_TYPE_SHELL = 18
ELEM_TYPE_SKYLIGHT = 19
ELEM_TYPE_MORPH = 20
ELEM_TYPE_STAIR = 21
ELEM_TYPE_ST_TREAD = 22
ELEM_TYPE_ST_RISER = 23
ELEM_TYPE_ST_STRUCT = 24
ELEM_TYPE_RAILING = 25
ELEM_TYPE_OPENING = 26
ELEM_TYPE_COLUMNSEGMENT = 27
ELEM_TYPE_BEAMSEGMENT = 28
IF GLOB_ELEM_TYPE = ELEM_TYPE_WALL THEN
...
ELSE
...
ENDIF
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 02:24 PM
Hi Yves
The label is always linked to the opening (created with the opening tool).
So the result will always be GLOB_ELEM_TYPE = 26.
GLOB_ELEM_TYPE doens't give any information about the direction of the object or information of the elements linked to the opening.
WIN 11
GDL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 04:02 PM
Effectively …
Sorry
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-11 09:45 PM
Why did you double post? Anyway, gonna answer here.
So, first of all, no. Sadly there is no (known to me) way to determine in what element the labeled opening sits in. I hope this will be available at some point.
Until then however there is a bit of a stupid workaround: Use "haskey(OPENING_CENTERHEIGHT_VALUES.toProjectZero)
". If resolving to NO it is an opening in slab.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-12 08:44 AM
Hi Lucas
Thanks, this workaround works perfect for my problem.
The other post is about the geometry (shape) of the opening (rectangular, circular, polygonal).
WIN 11
GDL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-12 12:21 PM
Ah my bad, I misread. Shouldn't post when too tired 😛
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»