How is this possible? 1 parameter, 2 values.

How is this possible? 1 parameter, 2 values.

Aidenj
Enthusiast Enthusiast
2,791 Views
17 Replies
Message 1 of 18

How is this possible? 1 parameter, 2 values.

Aidenj
Enthusiast
Enthusiast

One simple parameter, two values, at the same time, right next to each other. 

??

Your thoughts?

 

8.000 = 7.997 ?8.000 = 7.997 ?how is this possible 2.jpg

 

 

0 Likes
2,792 Views
17 Replies
Replies (17)
Message 2 of 18

Aidenj
Enthusiast
Enthusiast

Moreover, when I type "8.000" into the right side leg, it reverts to 7.997.  But it allows me to specify 8.000 on the left leg. 

0 Likes
Message 3 of 18

Aidenj
Enthusiast
Enthusiast

For all practical purposes, it doesn't matter to me if Revit is off by .003 on this family, I'm just curious how the software can store two values in one parameter at the same time.

0 Likes
Message 4 of 18

barthbradley
Consultant
Consultant

@Aidenj wrote:

I'm just curious how the software can store two values in one parameter at the same time.


 

A single parameter can only yield one value.  A parameter could return one value based on other parameter values.   Is that what you are talking about?  

 

https://www.revitforum.org/showthread.php/1046-Revit-Formulas-for-quot-everyday-quot-usage

0 Likes
Message 5 of 18

Aidenj
Enthusiast
Enthusiast
It makes sense when the value of a parameter is derived from a formula, or is dependent in some other way on a changeable variable. In this case, as you can see from the original post image, the parameter, "shingle side length" is just a simple value set by the user directly. I set it to 8.000. Revit shows both 8.000 and 7.997 at the same time in the actual family environment modeling window. That's what threw me for a loop. I'm wondering now if the reason it's doing this is because the view plane is out of alignment, just slightly, with the plane of the right half of the sketch, and would cause the screen-space measurement to return a smaller value to reflect how the sketch space lines land on the view plane.
0 Likes
Message 6 of 18

barthbradley
Consultant
Consultant

Is it a Reporting Parameter? 

0 Likes
Message 7 of 18

Aidenj
Enthusiast
Enthusiast
It's not a reporting parameter.
0 Likes
Message 8 of 18

cbcarch
Advisor
Advisor

set the angle to 135 degrees and see if they are both equal.

Cliff B. Collins
Registered Architect The Lamar Johnson Collaborative Architects-St. Louis, MO
0 Likes
Message 9 of 18

barthbradley
Consultant
Consultant

.

0 Likes
Message 10 of 18

ToanDN
Consultant
Consultant

Can you share the family?

0 Likes
Message 11 of 18

Aidenj
Enthusiast
Enthusiast

I thought I shared it in the original post, but it was a post I made about a similar topic. Attaching it now. Thanks!

0 Likes
Message 12 of 18

Aidenj
Enthusiast
Enthusiast

The angle is set by the slope through a formula - so it's hard for me to perfectly control it. The model is available for download if you'd like to play with it? I'm attaching it here if your are interested.

0 Likes
Message 13 of 18

barthbradley
Consultant
Consultant

Try this approach...

0 Likes
Message 14 of 18

barthbradley
Consultant
Consultant

Shingle using same approach...

0 Likes
Message 15 of 18

ToanDN
Consultant
Consultant

It doesn't look like your image and 8 is 8.

 

ToanDN_0-1616726813439.png

 

0 Likes
Message 16 of 18

Aidenj
Enthusiast
Enthusiast
You are right ToanDN. I checked the file I posted and it doesn't exhibit the strange behavior I asked about originally. I'm guessing it was from an intermediate file. The image in the original post is authentic, but I have not been able to find the version of that family that produced the unusual behavior.
0 Likes
Message 17 of 18

Aidenj
Enthusiast
Enthusiast
Hi barthbradley - thanks for looking into this. I tried out your file and it works very well. The reason I posted initially rose more out of a curiousness about the computer science behind the phenomenon, vs the practicality of getting a roof shingle to be parametrically perfect. But your file is indeed perfect, so thanks!
Message 18 of 18

barthbradley
Consultant
Consultant

You're welcome. 

 

I did those two Families before you posted  yours. That's the reason one is rod-shaped which is what I extrapolated from your screenshot. Then I saw the word "Shingle" and realized what the shape exactly was suppose to be.  Hence, the second one I did for you.  When I opened your RFA, I noticed you were using the sweep approach as well - although you did it a little differently.  Perhaps my way will be more stable.  Don't know.  Sounds like you are no longer having issues with yours. Maybe it was a fluke issue.        

 

Good luck.