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

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Start a new conversation!

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!