Formula Unit Check

Formula Unit Check

Anonymous
Not applicable
344 Views
0 Replies
Message 1 of 1

Formula Unit Check

Anonymous
Not applicable

Hi,

 

For an Add-In I am making, I need to find a way to evaluate a formula containing revit parameters.

The behavior I am looking for is similar to the behavior of the formula bar in Revit schedules. The user should get an inconsistent units warning when the formula can't be evaluated due to the combination of units of each parameter.

 

I know Revit has a FormulaManager class, but the Add-In I am creating has some more functionality than the operators and functions supported by this class.

 

Is there a way the check if different ParameterTypes combined in a formula result in the required parameter type (based on the output parameter), or is this something I will have to implement myself? 

 

Thanks ahead for the replies,

Thomas.

0 Likes
345 Views
0 Replies
Replies (0)