cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Storey Number

Anonymous
Not applicable
is their any way of reading the storey number that an object is placed on
14 REPLIES 14
Anonymous
Not applicable
Hello,
I had composed a reply to Andy's question last night
essentially saying what Frank said, use GLOB_ELEVATION.
But I reread Andy's post and decided that he was not
asking for GDL help but asking if there was some
object that did what he wanted that he could copy
the code from. I decided not post a reply because
I could not think of an object that did exactly what Andy wanted.

It looks like maybe Dan's objects might be what Andy needs.

While we are on the subject, My GDL manual says
GLOB_ELEVATION returns the height of the object
from the object's home story but László Nagy says in
"Global GDL Parameters General Global Variables"
that GLOB_ELEVATION returns the height of the object
from project zero.

I have not tested to find out which is correct
and wondered if anyone happens to know.
Thank you,
Peter Devlin
Anonymous
Not applicable
Hello Andy,
Since I did not know of a library part that did what you wanted,
I edited a 2D library part which is an electrical symbol
to do what I think what you want it to do.
See attached.
Right now, all it does is display it's height from it's
home story and you have to, in the settings dialog,
assign it a height but it can be made to
elevate itself automatically by changing the script.

As to my question about GLOBAL_ELEVATION
the manual is correct.
Peter Devlin
Andy Thomson
Advisor
Thanks Peter. I am trying to figure out what I am looking at here, the difference between:
sp=" "

ht=glob_elevation


ss=str("%0.64fi",ht)

TEXT2    0', 0', "4"+sp+"@"+sp+ss
and:
		ADD2 0, -rad*2
	TEXT2 0, 0, STR("%2.1fi",J_)
Somebody gave me a part with the latter, no glob_elevation and it works just the same...I am no GDL guy, I am just in the babysteps beginner mode, of staring at this for a long time until I understand what is going on. What is the STR("%___fi",_) bit referring to?
Andy Thomson, M.Arch, OAA, MRAIC
Director
Thomson Architecture, Inc.
Instructor/Lecturer, Toronto Metropolitan University Faculty of Engineering & Architectural Science
AC26/iMacPro/MPB Silicon M2Pro
Anonymous
Not applicable
Hello Andy
STR("%___fi",_) is a function that converts a numeric variable
into a string so that the text2 command can use it.
Look it up under "string functions" in the GDL manual.

"J_" is the old name for GLOB_ELEVATION so the two pieces of code
work the same because they are the same except for the transformations
needed to get the text out of the way of the symbol.
Peter Devlin
Andy Thomson
Advisor
Peter wrote:
"J_" is the old name for GLOB_ELEVATION so the two pieces of code
work the same because they are the same except for the transformations
needed to get the text out of the way of the symbol.
Peter Devlin
Ah! Thank you....that makes sense...
Andy Thomson, M.Arch, OAA, MRAIC
Director
Thomson Architecture, Inc.
Instructor/Lecturer, Toronto Metropolitan University Faculty of Engineering & Architectural Science
AC26/iMacPro/MPB Silicon M2Pro