Limiting the Range of User Parameters using min() / max()

Limiting the Range of User Parameters using min() / max()

heinzm64XF3
Contributor Contributor
7,944 Views
3 Replies
Message 1 of 4

Limiting the Range of User Parameters using min() / max()

heinzm64XF3
Contributor
Contributor

Hello,

 

I tried searching for a method to limit the range of user parameters (as to not break my design if the entered parameter was outside of a specific range) but my search came up empty.

 

I did however find a method using min() / max() as shown in the screenshot below.

 

Thought I would post it here for others that might not stumble upon how to do it.

 

I used Rc as a prefix, as Rl makes it harder to read, I just think of it as Range check.

 

This method does allow entering an out of range value in the Favorites section, but the value is adjusted to within the specified range. Just use the Rc prefixed parameter in your design (in this example RcHeight, RcWidth, or RcDepth) .

 

UserParams.png

 

7,945 Views
3 Replies
Replies (3)
Message 2 of 4

jasonfdarr
Explorer
Explorer

Thanks for this. This is exactly what I am looking for, however, I've tried this and it seems that no matter what I enter as "BoxHEIGHT", the RcBoxHEIGHT always returns the minimum value. What am I missing?

 

Screen Shot 2020-05-16 at 10.55.20 AM.png

0 Likes
Message 3 of 4

MichaelT_123
Advisor
Advisor

Hi Mr.Jasonfdarr

Consider to look sharper at your formula. It is ALMOST right but...

Regard

MichaelT

MichaelT
Message 4 of 4

jasonfdarr
Explorer
Explorer

YES!!! Thank you SO much - I was baffled... My numbers were reversed!!

0 Likes