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.

editing room stamp GDL file ??

Anonymous
Not applicable
Hi guys.
I would love to get some help with this.
I am a total newby with GDL coding but I have a GDL (room stamp)

My boss asked me, is it possible to ...

(1) make the box for room light height not letters but only with numbers as a output????´

(2) make the room height and room leight heigh always be the same.

Here is a screen shot of what I mean.

Would it be helpful if i uploaded the gdl object ?

any tips or help would be so super.
thank you.
Ian

adjust.jpg
3 REPLIES 3
Anonymous
Not applicable
ok i have opened the GLD object in the GDL editor and found the correct perimeter lichte Raumhohe.

Now there are different options for type ?? what is the right type for setting this section only to NUMBERS?

How can i make a connection between this perimeter and the room height perimeter, so both are connected and identical... ?
is that possible ?

thanks.
Ian
adjust2w.jpg
Anonymous
Not applicable
i tried in the editor to set the perimeter to COMPLETE NUMBER and also NATURAL NUMBER.
Both have crashed the object ???

the only option that seems to work is the text imput ?
Ian
Karl Ottenstein
Moderator
You can't just change the type of a parameter and have things continue to work.

I assume that your goal is just to prevent someone from typing anything other than a number for that parameter? Can't totally understand what you're after.

Since that parameter is text - the code in the rest of the object is expecting text, and formatting it for output that way. If you change it to a number, then you need to change the output code to convert the number to a text string at that point. (In general, you need to search all of every script for the changed parameter and adjust code accordingly.)

A 'trick' to avoid so much code modification is to introduce a NEW numeric parameter and to hide (or lock) the text parameter ... and then in the Parameter Script, convert this new numeric parameter to text and store it in the text parameter for things to proceed as before.

Cheers,
Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB