We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

NEED HELP! 2D and 3D Object with label showing 3D height value of object.

Anonymous
Not applicable
I have been looking around on the forums and the GDL website for awnsers, but cant seem to find something that will help me do this.

I am a beginner in GDL and my knowledge is very limited.

I have created my own electrical symbols and added a 3D model to the symbol and successfully saved these as objects.

I have managed to create a label that the text can be defined within the parameters.

Now I am trying to upgrade the symbols by adding a text label that shows the height of the 3D component in relation to the home storey Z-Value (The height of the actual 3D object.

So basically I am trying to create an electrical symbol (2D Line work) with a 3D 200x200x8mm wall segment and a text label, as an objects. And when I adjust the height of the object I want the label to reflect the actual height.

Please can someone assist, or point me in the direction of a forum thread or gdl script that can assist?

Thank you!
4 REPLIES 4
Anonymous
Not applicable
Symb_z_size
Anonymous
Not applicable
Thanks.

I have now tried and tried again.

I must be a total idiot, and clearly don't understand anything when it comes to GDL.

I have tried the following:

1. Created a new parameter

zheight = symb_z_size

2. Replacing the text with the zheight parameter, and directly trying the symb_z_size.

And various combinations of the above, under both the 3D, 2D and master sections.

I cannot seem to get the label to reflect an actual value defined by the 3D wall element.

I am certain someone has to have done this in the past. Seems I would need a step by step guide.
Palawat
Advocate
If you are trying to display the object's elevation within the 2D script of that 3D object, SYMB_POS_Z is what you might want to look at. SYMB_Z_SIZE is only available for listing and labels (Label Subtype).

But, the thing is, SYMB_POS_Z only gives off the value that relative to the project origin. If you want to display ie. elevation/height from the current story, you need to request "Story_info" and do some calculation from there. There's an example for requesting story information in the GDL Reference Guide. Search for "Story_info" and you'll see.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
sinceV6
Advocate
Hi.

Or maybe you can just use GLOB_ELEVATION. Depends on what you need.
If you need the objects elevation from the home storey, you can use that.
If what you want is the height of the object, you can use ZZYZX.

Best regards.