Revit MEP Forum
Welcome to Autodesk’s Revit MEP Forums. Share your knowledge, ask questions, and explore popular Revit MEP topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Formulas in Revit Family Do Not Lock

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
jmiller
2173 Views, 3 Replies

Formulas in Revit Family Do Not Lock

jmiller
Explorer
Explorer

This appears to be a bug in the family editor at least as far back as Revit 2011.  When using a formula to drive a parameter, the value for the parameter should turn gray and not be editable by the user in the project environment.  At least, that's the theory that seems to be espoused in the manual.  What I've come to determine is that this behavior is true for formulas that include 'if' or other statements, and for simple math that uses two or more parameter names ("Parameter 1 + Parameter 2").  However, formulas that include only one parameter name plus a value ("Parameter 1 + 1'") have inconsistent behavior.  Sometimes the parameter value will turn gray, and sometimes it stays black.  It calculates correctly, but the user has no way in the project environment to tell that the value is being calculated by a formula and is free to type a different value into the field.  I have searched all over and can find no mention of this behavior anywhere.  Am I truly the only person having this problem over the last 5 years?

 

Some examples:

 

Expected behavior:

 

Revit Formula Normal.PNG

 

 

Observed behavior:

 

Revit Formula Error.PNG

Revit Formula Error 2.PNG

 

 

And yet, sometimes the same type of expression works as expected:

 

Revit Formula as Expected.PNG

 

???

 

 

Formulas in Revit Family Do Not Lock

This appears to be a bug in the family editor at least as far back as Revit 2011.  When using a formula to drive a parameter, the value for the parameter should turn gray and not be editable by the user in the project environment.  At least, that's the theory that seems to be espoused in the manual.  What I've come to determine is that this behavior is true for formulas that include 'if' or other statements, and for simple math that uses two or more parameter names ("Parameter 1 + Parameter 2").  However, formulas that include only one parameter name plus a value ("Parameter 1 + 1'") have inconsistent behavior.  Sometimes the parameter value will turn gray, and sometimes it stays black.  It calculates correctly, but the user has no way in the project environment to tell that the value is being calculated by a formula and is free to type a different value into the field.  I have searched all over and can find no mention of this behavior anywhere.  Am I truly the only person having this problem over the last 5 years?

 

Some examples:

 

Expected behavior:

 

Revit Formula Normal.PNG

 

 

Observed behavior:

 

Revit Formula Error.PNG

Revit Formula Error 2.PNG

 

 

And yet, sometimes the same type of expression works as expected:

 

Revit Formula as Expected.PNG

 

???

 

 

3 REPLIES 3
Message 2 of 4
L.Maas
in reply to: jmiller

L.Maas
Mentor
Mentor
Accepted solution

Not really noticed when using. Could be that when simple parameters are used Revit can still work with it.

 

As an example:

B = A + 1. In this case even if there is a formula for Parameter B. When changing B Revit knows what A should be and can update both values.

This situation changes when the formula is something like B = A + C + 1. Then no conclusion can be drawn about A or C when B changes.

 

I see that behaviour changes when parameters are type parameters (not greyed) vs instance parameters (greyed).

 

As mentioned never really noticed this behaviour, so never bothered me. So I would not call it a real bug but at most and inconsistent policy.

 

In case you would like to see this behaviour changed you could ask by using THIS form on the Autodesk Website.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes

Not really noticed when using. Could be that when simple parameters are used Revit can still work with it.

 

As an example:

B = A + 1. In this case even if there is a formula for Parameter B. When changing B Revit knows what A should be and can update both values.

This situation changes when the formula is something like B = A + C + 1. Then no conclusion can be drawn about A or C when B changes.

 

I see that behaviour changes when parameters are type parameters (not greyed) vs instance parameters (greyed).

 

As mentioned never really noticed this behaviour, so never bothered me. So I would not call it a real bug but at most and inconsistent policy.

 

In case you would like to see this behaviour changed you could ask by using THIS form on the Autodesk Website.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 4
fabiosato
in reply to: jmiller

fabiosato
Mentor
Mentor

There is an workaround to prevent editing the input parameter from the output one, use a formula like:

B=if(1=1,A+1,1), actually the last value has no meaning.

This will make possible to edit only the A parameter

Fábio Sato
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

There is an workaround to prevent editing the input parameter from the output one, use a formula like:

B=if(1=1,A+1,1), actually the last value has no meaning.

This will make possible to edit only the A parameter

Fábio Sato
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 4 of 4
jmiller
in reply to: jmiller

jmiller
Explorer
Explorer
Thanks. I'll use the form to request that the behavior be made consistent. It's really irritating because content we build in house gets corrupted in the project environment because users can't tell which parameters are being calculated by formulas (and so they change the values...). And no, in my experience Revit does not automatically compensate for the change in value to make everything still stay the same.

Jeff Miller LEED AP, CTS-D
Senior Consultant

Idibri
T 1.1.469.726.4266>619.596.4800
D 1.619.569.2025
M 1.1.469.726.4266>619.990.8834
E jmiller@idibri.com

@Idibri | linkedin/Idibri | Idibri.com1.469.726.4266>1.469.726.4266>
0 Likes

Thanks. I'll use the form to request that the behavior be made consistent. It's really irritating because content we build in house gets corrupted in the project environment because users can't tell which parameters are being calculated by formulas (and so they change the values...). And no, in my experience Revit does not automatically compensate for the change in value to make everything still stay the same.

Jeff Miller LEED AP, CTS-D
Senior Consultant

Idibri
T 1.1.469.726.4266>619.596.4800
D 1.619.569.2025
M 1.1.469.726.4266>619.990.8834
E jmiller@idibri.com

@Idibri | linkedin/Idibri | Idibri.com1.469.726.4266>1.469.726.4266>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report