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

lock dimensions (parameter) - formula

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
uoliveira
1363 Views, 5 Replies

lock dimensions (parameter) - formula

uoliveira
Advocate
Advocate

How can I lock a width parameter until a determined dimension, but still allowing it to change until this dimension value?

Thanks!

0 Likes

lock dimensions (parameter) - formula

How can I lock a width parameter until a determined dimension, but still allowing it to change until this dimension value?

Thanks!

5 REPLIES 5
Message 2 of 6
ToanDN
in reply to: uoliveira

ToanDN
Consultant
Consultant

Do you mean you want to limit the value of the parameter to a certain range?

Do you mean you want to limit the value of the parameter to a certain range?

Message 3 of 6
uoliveira
in reply to: ToanDN

uoliveira
Advocate
Advocate

yes!

I was trying to explain this in a simple way but I failed.

0 Likes

yes!

I was trying to explain this in a simple way but I failed.

Message 4 of 6
ToanDN
in reply to: uoliveira

ToanDN
Consultant
Consultant
Accepted solution

Below is an example using a formula:

 

- Predefined min and max Value: min Width, max Width

- Control value: Width Control

- Return value: Width

 

if(Width Control < min Width, min Width, if(Width Control > max Width, max Width, Width Control))

 

Capture.PNG

Below is an example using a formula:

 

- Predefined min and max Value: min Width, max Width

- Control value: Width Control

- Return value: Width

 

if(Width Control < min Width, min Width, if(Width Control > max Width, max Width, Width Control))

 

Capture.PNG

Message 5 of 6
Anonymous
in reply to: ToanDN

Anonymous
Not applicable

Hello, what if you don't have a maximum value, only a minimum value?

0 Likes

Hello, what if you don't have a maximum value, only a minimum value?

Message 6 of 6
David_W_Koch
in reply to: Anonymous

David_W_Koch
Mentor
Mentor

You have probably worked this out already, but for future readers, if you have a minimum value that must be met, but no maximum, then adjust the formula that @ToanDN provided to read:

 

if(Width Control < min Width, min Width, Width Control)

 

You can also drop the max Width parameter.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes

You have probably worked this out already, but for future readers, if you have a minimum value that must be met, but no maximum, then adjust the formula that @ToanDN provided to read:

 

if(Width Control < min Width, min Width, Width Control)

 

You can also drop the max Width parameter.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

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

Post to forums  

Autodesk Design & Make Report