GDL
About building parametric objects with GDL.

Label for opening codes in GDL

David Shorter
Advisor
How do I create a label to show these codes. (the 4 codes inRED)
Archicad 4.1 to 28 Tech Preview. Apple Silicon
you can't build a line
Mac Studio
iPad Pro
iPhone
3 REPLIES 3
Barry Kelly
Moderator
The Right and Left is simply the orientation.
But I don't think doors have any concept of what is inside or outside - at least as far as autotext goes.

The schedules have a 'view from reveal side' and 'view from opening side', but I don't see any autotext values for opening side.

There is a parameter for 'ac_wido_reveal_side_2'
0 = opens to same side as reveal side.
1 = opens to side opposite reveal side.

So if your reveal is always on the outside and your door has that parameter, you should be able to use this in a scripted label by using ...

rrr=REQUEST ("ASSOCLP_PARVALUE", "ac_wido_reveal_side_2", name_or_index, type, flags, dim1, dim2, p_values)

if p_values is 1 then it opens inside otherwise it is outside.


Mind you I have not tried to create a label that does this so just a theory on my part at the moment.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Barry Kelly
Moderator
I had a quick play.
I couldn't get the 'ac_wido_reveal_side_2' parameter to work.
But I used the global 'WIDO_REVEAL_SIDE' and then set a parameter to say 'Inside' or 'Outside'

if WIDO_REVEAL_SIDE = 0 then
	window_open_side = "Outside"
else
	window_open_side = "Inside"
endif
PARAMETERS window_open_side = window_open_side

Then I used that in the label ... rrr=REQUEST ("ASSOCLP_PARVALUE", "window_open_side", name_or_index, type, flags, dim1, dim2, p_values)

Seems to work OK.
Add in the orientation (left, right) and you should be good to go.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Peter Baksa
Graphisoft
Graphisoft
Use the globals described here at flipping. WALL_FLIPPED is also needed if you want to match it to the wall's inside/outside.
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest