Self Adjusting parameter inside nested family

Self Adjusting parameter inside nested family

tim.perkinsSHINE
Contributor Contributor
1,183 Views
11 Replies
Message 1 of 12

Self Adjusting parameter inside nested family

tim.perkinsSHINE
Contributor
Contributor

I'm fairly new to Revit families.  I have a Generic Model family that has several parameters that are working fine with the exception of getting the length of a angled brace.  In the shot below, the adjustable parameter that drives the non-working parameter is the "Main Strut Length"  The angled brace must stay 4" max from the center of the cross brace.  When the Main Strut Length is changed, the angled brace must adjust length to meet the right plane minus the setback distance of 1/8".  I have not been able to get the angled brace length to adjust using reference planes, reference lines or by any other means.

 

Is there anyone that can help my out?  

 

timperkinsSHINE_1-1695415616154.png

 

0 Likes
Accepted solutions (1)
1,184 Views
11 Replies
Replies (11)
Message 2 of 12

Alfredo_Medina
Mentor
Mentor

The unistrut family is a simple extrusion without a length parameter. You need a length parameter in that family. 

Once you have it, that will be your "c" side, or hypotenuse of that triangle. You know "b", and you know "A". Now you need to find "c". 

To make it exactly at the point where you want, so that the bottom of the unistrut has that exact gap of 1/8", probably you need more trigonometry, or probably you can put that gap in the unistrut family.

 

 

 

2023-09-22_17-21-00.png

 

For more information about trigonometry for Revit, visit this link (credits to Klaus Munkholm and others in Revitforum) : https://www.revitforum.org/node/1126?t=1046&page=22


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 3 of 12

tim.perkinsSHINE
Contributor
Contributor

I have set the length parameter in the brace piece and still I cannot get the family to completely work.  All of the horizontal or vertical pieces are working fine, but it's 45° brace and mounting bracket that I can't get to adjust as I change the width and length of the family main struts.

0 Likes
Message 4 of 12

Alfredo_Medina
Mentor
Mentor

Did you associate the length parameter from the nested brace piece to a parameter in the host? (the hypotenuse of the triangle)


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 5 of 12

tim.perkinsSHINE
Contributor
Contributor

I have associated the "N1001C Length" in the strut family to the main family "Brace Length".  I can change the "Brace Length" and the N1001C Length" will update.  What my problem is, is that I can't get the "Brace Length" to automatically update when I adjust the "Main Strut Length".

 

I have also tried the Trig approach.

 

I have started over with this brace.  I can constrain the ends of the brace with reference lines and everything is working.  As soon as I place a dimension and add the parameter "Brace length" or the side A / Side B for a trig calculation, and assign the parameter, I get the "Constraints are not satisfied" error message.  If I leave the "Brace Length" dimension without assigning a parameter and adjust the "Main Strut Length", I get the "Constraints are not satisfied" error message.

 

timperkinsSHINE_1-1696003898896.png

timperkinsSHINE_2-1696003912424.png

 

 

0 Likes
Message 6 of 12

Alfredo_Medina
Mentor
Mentor

It's difficult for me to determine the exact reason, but I can think of these possible reasons:

1) You aligned and locked both ends of the nested family of the brace to references in the host. When you want to control a linear element, align and lock only the starting point, then associate its length parameter to a parameter in the host.

2) Or... there are extra angular parameters. Sometimes there is more than one angular parameter controlling a rotation.

3)Or... you have created constraints (align & lock) to faces or edges of existing solids, instead of to reference planes or reference lines.

 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 7 of 12

ToanDN
Consultant
Consultant

Try the attached family.  It is R2024 so you will need to rebuild it in R2023.

 

ToanDN_0-1696012181123.png

 

0 Likes
Message 8 of 12

tim.perkinsSHINE
Contributor
Contributor

ToanDN,

 

Can you tell me what changes you made?  I don't have 2024, and it will take a while for my IT to install after I submit a request for it.

0 Likes
Message 9 of 12

ToanDN
Consultant
Consultant
Accepted solution

@tim.perkinsSHINE wrote:

ToanDN,

 

Can you tell me what changes you made?  I don't have 2024, and it will take a while for my IT to install after I submit a request for it.


See GIF.

 

Revit_ltMTtcyqXP.gif

0 Likes
Message 10 of 12

tim.perkinsSHINE
Contributor
Contributor

ToanDN,

 

I just followed you screencast and the family now works.  I'm not sure why, but thank you!

0 Likes
Message 11 of 12

Alfredo_Medina
Mentor
Mentor

@tim.perkinsSHINE wrote:

"... I can constrain the ends of the brace with reference lines and everything is working.  As soon as I place a dimension and add the parameter "Brace length" or the side A / Side B for a trig calculation, and assign the parameter, I get the "Constraints are not satisfied" error message..."

 

That, what you said there: "I can constrain the ends of the brace..." is one of the reasons I mentioned in message # 6 above, that when you control the length of a nested element, you only need to constrain one end and then associate parameters. If you constrain both ends, you get that kind of error. I am glad to see that the issue was solved. However, as per your last message, you still don't know why, which, in my opinion, would be more important than having someone else fix it for you

 

 


 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 12 of 12

tim.perkinsSHINE
Contributor
Contributor
I agree 100% that I should know why. The issue is that I am out of time in my schedule to complete this project. I'm not giving up, but instead have to move on to the next project in my schedule. I will need this family in another project I'm sure, and will come back to this when I run into it again.
0 Likes