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

Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

PROBLEMS AT CREATING AN EXPRESSION DEPENDENT ON MULTIPLE PROPERTIES

Anonymous
Not applicable
Hi Archicad Community, I need some help

I have been trying to create an expression that depends on others to give me a result.

what I am trying to do, is to create a schedule for urban planning.

I am placing a slab and the thickness of the element is my height, then I create a property in which, it divides the thickness of my slab with the value of my floor height ( another property previously done with a string type and I currently have 3,5 and I want to have it open to be modified since the heights may be necessary to adjust in the future) to give me the number of floors I have and then I create another property in which the expression will multiply the result of the number of floors by the top surface of the slab.

every time I create the expression it says that the function expects a numeric value.

I tried to create the area of the slab into string value as well as the thickness and still doesn't work.

do you have any ideas on how to work it out?

thank you all in advance
1 REPLY 1
Barry Kelly
Moderator
Try using numeric values for your number of floors.
You can't mix numbers and strings unless you convert them to the same data type.

This will give you a numerical value that you can round up or down and multiply by your floor area.

You need to make sure that your expression will calculate the data type that you have set.
i.e. number, integer, length, etc.
A length multiplied by a length will give you an 'Area' data type, not a length.
If the expression is red, then the wrong data type is set, or you need to do a conversion in the expression to change it to the required data type.


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