error in logarithm parameter

error in logarithm parameter

Mahmoud_A
Explorer Explorer
608 Views
4 Replies
Message 1 of 5

error in logarithm parameter

Mahmoud_A
Explorer
Explorer

Dear all

when i create log parameter in this family then apply . i see this message

any one can help me???1.JPG2.JPG

0 Likes
Accepted solutions (1)
609 Views
4 Replies
Replies (4)
Message 2 of 5

ToanDN
Consultant
Consultant
Accepted solution

Because the Air Flow value for that type is 0.  You need to enter some value for it.

 

Or change the formula to: if(Liner Flow > 0, log(Liner Flow), 0)

 

Capture.PNG

Message 3 of 5

Mahmoud_A
Explorer
Explorer

Dear, ToanDN

Thank You

 

formula working good,,but changing the value of Air flow not working.

 

Thanks again

1.JPG

0 Likes
Message 4 of 5

chrisplyler
Mentor
Mentor

Changing airflow to a positive value DID work. At least for the 2-slot type. If you read that error you'll see that it's now for one of the 3-slot types. You can keep correcting the values, but it's going to keep throwing an error on the next type until you've corrected all of them.

 

It is best to solve the formula problem so that it handles the zero airflow condition without error anyway. Even if you set default values for airflow of all the types, somebody somewhere can set the value to 0 in a project and it's going to break and show the user one of those "I can't make this family, and I'm not telling you why, you dummy!" error message.

Message 5 of 5

ToanDN
Consultant
Consultant

@Mahmoud_A

 

Use the alternate formula I gave you in the earlier post and in the revised family to take care of all the zero Air Flow conditions.

Here it is again:

 

if(Air Flow > 0, log(Liner Flow), 0)