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: 

Add instance parameter to multiple families with the ability to apply a formula?

3 ANTWORTEN 3
Antworten
Nachricht 1 von 4
JacobDSimpson
850 Aufrufe, 3 Antworten

Add instance parameter to multiple families with the ability to apply a formula?

Hi There,

 

So I am trying to add an instance parameter to several family types (generic model, site, specialty equipment and entourage). There are 4 parameters in total I am hoping to add that are supposed to indicate a duration of time, with the ability to add a formula to them that makes them all change if one of them is changed. The parameters I want to add are Day, Week, Month & Year. 

 

So for the formula for a week I would have (Day / 7), month would be (Week / 52 * 12), year would be (Month / 12). I believe these formulas should provide more or less accurate results. I would like the ability to enter the number of days that an item is going to be on site for and after entering this the week, month and year automatically populate calculated from the number days. I'd also aim for the number to round to the nearest 1 decimal place if the weeks / months are not exactly whole. 

 

Would anyone be able to help me understand how I can do this? I have tried using a variety of shared, project & global parameters but cannot seem to get the results I want, I am not even sure at this point it is possible. When I create the instance parameter in the family types I want, I am only able to add a global parameter and can't add a formula that works in global parameters, I am very confused at the moment, any insight would be greatly appreciated. 

 

Thanks

Beschriftungen (1)
3 ANTWORTEN 3
Nachricht 2 von 4
indiana_j0nes
als Antwort auf: JacobDSimpson

Sounds interesting.

I wonder what is the intention behind this. Perhaps you could also share some screenshots or familes you have tried so far.. that could be a good starting point to pool-in ideas to make it work?

Kunal Tuljaram Gaidhankar

EESignature

Nachricht 3 von 4
Mirko.Jurcevic
als Antwort auf: JacobDSimpson

I have a feeling that most of my posts begin with "do it with Dynamo", but I cannot help myself.

 

You cannot add formulas to the parameters in project, only calculated values (parameters) in schedules. But I don't see if this can be appropriate solution in your case. You can achieve something with multi-category schedule, but whatever it is, you will end entering the same value multiple times.

 

The most "automatic" solution can be achieved with Dynamo script, which should check one custom parameter, let's call it "Site group" and find other instances of different families (and categories) with the same value of that parameter and then in all these instances Dynamo can enter the value (number of days) you need.

Changing the value of days will update all elements in one "Site group".

There is also possibility to add some "key > value" pairs in Dynamo which will allow you to add different number of days to different "Site groups".

 

Determining week, month, year is relatively trivial math here.

 

I am also interested what is the purpose of this, if it's not a secret?

If this solved your issue, please Accept it as Solution help other forum users with similar issues to find answers easily.
  
Mirko Jurcevic


My blog: www.engipedia.com
Try my Revit add-ins: Autodesk App Store
Nachricht 4 von 4
barthbradley
als Antwort auf: JacobDSimpson

What about Navisworks/TimeLiner?  

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