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: 

how do i program this to families

4 ANTWORTEN 4
Antworten
Nachricht 1 von 5
Anonymous
288 Aufrufe, 4 Antworten

how do i program this to families

Distance is A perameter that depends on the peramater (A*2)
C is also a perameter
i want to make it so that distance B is never smaller than 4000 mm
and if it is than the (2*A) is decreased so that B is 4000 mm
if B is more than 4000 than nothing should be done
how do i program this in revit families

vcvcvcv.png

Tags (1)
4 ANTWORTEN 4
Nachricht 2 von 5
barthbradley
als Antwort auf: Anonymous

"C" can't be a parameter.  

 

Can you give us some real world examples/numerical values to work with.  

 

Nachricht 3 von 5
constantin.stroescu
als Antwort auf: Anonymous

I'm not quite sure this solve your problem.

I've made a second parameter b=B in order to apply two formulas - one being yours , the other a IF parameter.

Image 1.png

Constantin Stroescu

EESignature

Nachricht 4 von 5
SteveKStafford
als Antwort auf: Anonymous

The issue with constraints is leaving Revit an option for flexing the family without the dreaded over constrained warning. You have to decide which values are variables the user can provide and what Revit is free to calculate. In my example I've decided that the user can provide C (overall length) and A which is half of what is left over after you subtract the value for B*2. The IF statement subtracts 2 x A from C then divides by 2; it decides if that result is less than 4000. If it is then it forces 4000 and if it isn't it just uses the value of the original calculation.

 

Edit: Looks like Constantin beat me to it...


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

Nachricht 5 von 5
barthbradley
als Antwort auf: Anonymous

Formula.png

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