icon

[Frage] Formula with error


Hi, I have this formula but it tells me that the closing parenthesis is missing. I don't understand where I'm going wrong. Hole_deduction is a custom attribute of type Floating.point with input while Surface and Quantity are attributes standard of Allplan.

_IF_(Surface>0|Surface<-Hole_deduction)Quantity

_IF_(Surface>0|Surface<-Hole_deduction)Quantity

untested, but i think the - is wrong at this point of your formula. it should be only <

Viele Grüße
Florian

LinkedIn-Profil

www.vollack.de

Hi,

I think you need to use parentheses inside the IF block because there's more than one comparison. If the first formula below doesn't work, you can use the second one.

_IF_((Surface>0)|(Surface<-Hole_deduction))Quantity

_IF_(Surface>0)Quantity_ELSE__IF_(Surface<-Hole_deduction)Quantity_ELSE_0

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn - Profil
Udemy - Profil
YouTube - Channel

Hi Florian and Hatem...none formula works. The problem is the - before Hole_deduction. I solved the problem by setting the attribute with negative signs (-1, -2, -2.5, ...) and keeping my formula