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
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
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?
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.