Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
Comentario
Anonymous

Hi dgorsman, 

 

Thank you, maybe you are right.  But in this case I would opt for doing some more research into better error analysis tools :cara_con_una_leve_sonrisa:

 

I have the impression that the compilers of most programming languages generally generate better error messages, so there should be some margin and better methods than relying on try and catch.

 

Also, in the case of "Length / (Number + 1)", a try/catch approach would only work when the value of Number actually is 0 at the time the formula was added.  But an error is printed even if Number is different from 0 - and it is not printed when +1 is added.  

 

Actually, rather than speculation, it would be interesting to know what kind of procedure causes the error message in this case.

 

For the case that a try/catch approach was used with different values, the Number == 0 one of them, the reason of the error, however, is clear and a better error message simple to generate.