Get formula from a Revit Family Parameter

Get formula from a Revit Family Parameter

Balaji_07
Advocate Advocate
2,986 Views
5 Replies
Message 1 of 6

Get formula from a Revit Family Parameter

Balaji_07
Advocate
Advocate

Hi,

 

Is there  any way or API function available to get the formula of Parameters in a Revit family ?

 

Thanks & Regards,

Balaji A

 

0 Likes
Accepted solutions (1)
2,987 Views
5 Replies
Replies (5)
Message 2 of 6

Revitalizer
Advisor
Advisor
Accepted solution

Hi,

 

FamilyParameter.Formula ?

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 3 of 6

Anonymous
Not applicable

@Revitalizer 

 

Is there an example of how to use this? 

 

I've been searching all over the web and this is the only instance I can find of the function FamilyParameter.Formula, and with that I can not find an example of how to use it and have been unsuccessful on using it in my own code.

 

I know this is a very old post, so hopefully you can assist me with this still.

0 Likes
Message 4 of 6

Revitalizer
Advisor
Advisor

Hi,

 

I would think you write the same string as using the GUI.

https://www.revitforum.org/tutorials-tips-tricks/1046-revit-formulas-everyday-usage.html

 

Revitalizer

 

 




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 5 of 6

maisoui
Advocate
Advocate

Hi,

 

This property seems to be gone in the latest version (2021) of the Revit API. Do you know how to retrieve a parameter's formula? or, at least, to retrieve if a parameter has a formula or not?

 

Best regards,

Jonathan

--
Jonathan
0 Likes
Message 6 of 6

maisoui
Advocate
Advocate

Hi,

 

I have the same question for Parameter and not FamilyParamter. How to retrieve the parameter's formula or at least to know if parameter has a formula or not ?

 

Best regards,

Jonathan

--
Jonathan