Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Self Adjusting parameter inside nested family

11 ANTWORTEN 11
GELÖST
Antworten
Nachricht 1 von 12
tim.perkinsSHINE
924 Aufrufe, 11 Antworten

Self Adjusting parameter inside nested family

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

 

Beschriftungen (6)
11 ANTWORTEN 11
Nachricht 2 von 12
Alfredo_Medina
als Antwort auf: tim.perkinsSHINE

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
Nachricht 3 von 12

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.

Nachricht 4 von 12
Alfredo_Medina
als Antwort auf: tim.perkinsSHINE

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
Nachricht 5 von 12
tim.perkinsSHINE
als Antwort auf: Alfredo_Medina

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

 

 

Nachricht 6 von 12
Alfredo_Medina
als Antwort auf: tim.perkinsSHINE

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
Nachricht 7 von 12
ToanDN
als Antwort auf: tim.perkinsSHINE

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

 

ToanDN_0-1696012181123.png

 

Nachricht 8 von 12
tim.perkinsSHINE
als Antwort auf: ToanDN

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.

Nachricht 9 von 12
ToanDN
als Antwort auf: tim.perkinsSHINE


@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

Nachricht 10 von 12
tim.perkinsSHINE
als Antwort auf: ToanDN

ToanDN,

 

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

Nachricht 11 von 12
Alfredo_Medina
als Antwort auf: tim.perkinsSHINE


@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
Nachricht 12 von 12
tim.perkinsSHINE
als Antwort auf: Alfredo_Medina

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.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report