License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Story information

Red
Advocate
Does anyone have an example they can share that would show the following.


Story information
GLOB_HSTORY_ELEV B_ elevation of the home story
home story is the one the object is placed on
GLOB_HSTORY_HEIGHT Q_ height of the home story
home story is the one the object is placed on
GLOB_CSTORY_ELEV Q~ elevation of the current story
current story is the one currently shown in the Floor Plan window
GLOB_CSTORY_HEIGHT R~ height of the current story
current story is the one currently shown in the Floor Plan window
GLOB_CH_STORY_DIST S~ relative position of the current story to the home story
current story is the one currently shown in the Floor Plan window



To my understanding it is possible that have part of an object show up on one story and part of it on another. Correct me if I'm wrong.


Example:
The object that I'm working with is a Glu-lam and on its on story I would like for it to show the size ( 5 1/8 x 17 7/8 ), but when it is shown one story down the text is not needed. Is there away to achieve this with the variables above.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
8 REPLIES 8
Anonymous
Not applicable
Red,
I have a library part of a fireplace and chimney.
When I am in the home story the object shows a firebox and
masonry infill around the fire box and
a dashed line for the chimney above.
When I go up one or more stories the object shows
just the chimney cross-section.

In the parameter list I made an integer type parameter named "sstory"
"Show on stories above home story"
In the 2D script I made a parameter and initialized it "stor=s~"
(GLOB_CH_STORY_DIST S~).
Then I made the following "If" condition,
IF STOR>0 AND STOR<=Sstory THEN ....
followed by the code for just the chimney.
This seems to work for this fireplace object.
Is this what you want to do?
Peter Devlin
Red
Advocate
Peter wrote:
Is this what you want to do?
Peter Devlin
It looks to be similar, but it may point me in the right direction.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
Anonymous
Not applicable
Red,
It occurs to me that all you have to do is, in the 2D script,
write:
If s~=0 then
(the code for displaying the size of the glulam)
endif

Wouldn't that do it?
Peter Devlin
Red
Advocate
Ok I got another question now. Is there anyway to script a fill that will adjust to the text length.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
Anonymous
Not applicable
Red,
If I understand you correctly, the stw() function is what you need.
On page 119 of the GDL reference manual version AC 8.1
there is an example for using the stw() (string width) function.
The example encloses some text with a rectangle and the
rectangle's width dimension is controlled by the return values
from the stw() function.
You could just substitute the dimensions of a fill
for those of the rectangle using the example code the way it is.

Peter Devlin
PS Did you get the glulam to show the way you wanted
depending on story?
Laszlo Nagy
Community Admin
Community Admin
On the following web page there is detailed info on each of these Global GDL variables:
http://www.graphisoft.com/support/archicad/archiguide/generalparameters.html
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Red
Advocate
Thanks for the info because I believe my GDL Manual grew legs and walked off.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
Red
Advocate
Peter wrote:
PS Did you get the glulam to show the way you wanted
depending on story?
Yes I did and thanks for the help.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz