Revit formula calculation

Revit formula calculation

swfaust
Advocate Advocate
764 Views
5 Replies
Message 1 of 6

Revit formula calculation

swfaust
Advocate
Advocate

Does anyone know if it's possible to access or use the calculation routine Revit uses for calculating parameter values that are based on formulas?  I haven't seen anything so I think probably not but thought it worth asking. We are able to get parameter values and formulas and we are pushing those around, but it would be nice to be able to calculate the new value of a formula driven parameter when an associated parameter changes outside of Revit.

 

Assuming it isn't possible to just use this, is there any guidelines or documentation on how exactly Revit does this, what functions are supported, etc.?

0 Likes
765 Views
5 Replies
Replies (5)
Message 2 of 6

JimJia
Alumni
Alumni
Dear Stephen Faust, Please accept our sincerer apology for the delay! We had a backlog in the queue these days. We have FamilyManager class which provides "Set value and formulas" functionality. Could you please help to check whether this function meets your request? If not, let we know for more helps. we appreciate your cooperation and patience.

Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes
Message 3 of 6

swfaust
Advocate
Advocate

Thanks for the reply Jim.  I know about those setters, but more what I'm after is being able to do the calculation myself.  I am storing parameter values and formulas externally to Revit and letting the user update the parameter values in an independent database and then push them back into Revit in various forms. So what I would like to do is basically reproduce the formula calculations without having that specific family open at the time.  When they change a parameter value in the external UI I would like to be able to update the value of formula driven parameters driven by that parameter in my UI...

 

I know Revit performs these functions internally obviously, but is there a way to access them directly instead of through setting of parameters and formulas?  If there is no way to do that (and I kind of doubt there is) is there any documentation on how the calculations are done so that I can reproduce it?

0 Likes
Message 4 of 6

JimJia
Alumni
Alumni

I am sorry to say that there is currently no API access to this functionality.
You are welcome to provide us with additional information as following where possible:
• Impact on your application and/or your development.
• The number of users affected.
• The potential revenue impact to you.
• The potential revenue impact to Autodesk.
• Realistic timescale over which a fix would help you.
• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact Change Requests. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes
Message 5 of 6

swfaust
Advocate
Advocate

Ok thanks.  I kind of figured that would be the case but thought it worth asking.  I will see about submitting something or see what I can figure out on my own...

 

Thanks,

Steve

0 Likes
Message 6 of 6

JimJia
Alumni
Alumni

Thank you for your update, understanding and patience.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes