It’s working great (Thank you Kyle Martin/Shepley Bulfinch!!!) and we are now attempting to modify it to generate program masses on multiple floor levels in Revit within a single run of the graph. Any guidance on how to do this is greatly appreciated. Thanks!
Best to skip lunchbox as that hasn’t been updated or maintained for like six years now. Best to start a new topic to discuss the options for an alternative node.
Hi @Geom_On_Axis you can still find LB mass addition node in synthezise toolkit and should work,guees you can find a similar in crumple package or just use ootb as well
That said you don’t need to ask us to do this directly. There is comparable code solutions on the forum all over place. Three good hits in one search, including this bit of design script: Math.Sum(List.DropItems(viewsList, -List.Count(viewsList)..-1));
If you want the node fixed try reaching out to the package author directly.
# The input to this node will be stored in the IN[0] variable.
input_list = IN[0]
# Initialize an empty list to store cumulative sums
cumulative_sums = []
# Initialize a variable to store the total sum
total_sum = 0
# Calculate cumulative sum and store partial sums
for num in input_list:
total_sum += num
cumulative_sums.append(total_sum)
# Assign the results to the OUT variables
OUT1 = total_sum # Total sum
OUT = cumulative_sums # List of partial sums
Why not? I think Coding history is modifying and developing other’s code. we should put other name, or put our name on it while cite their names too with thanks.
We can’t as they own the package, we don’t. It is open sourced so an enterprising individual could publish their own version, but they would have to update and maintain it AND you would have to replace the LB node with the one in the other package.
And as this is like sixty character of design script or four out of the box nodes, it’s easier to manage it as code in your graph.
By that logic download their code and DIY then. Calling out others (not responsible for the code) directly to do it for you is generally not looked well upon as these are generally unpaid/open source initiatives. First point of call is always the author to see if they have tips or might update it, then have a crack yourself and finally seek help I think.
Most code eventually hits an end of life, if you find yourself getting to these more complex types of scripts it will greatly benefit to delve deeper into Python and beyond to give yourself better reach when you hit these road blocks.
I agree with you but what I saw here that developers love to solve any problem whether they are specifically requested or not. If they could manage their valuable time, they helped lot of people who were stuck at some point. As well as everybody do some homework, got stuck and request for help and the great DevOps helped the whole community through someone’s issue and I love this culture of being the community developing day by day. I think a personal request is not personal (though the request here was for @mcrowleyQ6PET and the whole community) or for him/her only but the whole community get help with the caring DevOps. I greatly apt your directions to hit the road block but it is a used to proverb in the coding arena that “Don’t run the wheel if it is already there even in the AI” which eventually will save time of all and help people learning more faster through discussions.
So far I got this without Lunchbox for Level-1 massing with one error. But now probably we need to solve the adjacency of the spaces to get an organized mass-floor plan or 3d. I don’t know how to do that. Any help? Or, I think, without Lunchbox node, there is some error which is preventing adjacency. Need to check the second installation as suggested.
The original graph was intended to ‘make masses’ for the users to play with. Optimization for space planning is quite a bit different; there are several examples on the forum, the Dynamo blog, other blogs, user blogs, conferences, the generative design primer, and even in the old Refinery sample graphs (sadly lost to time, but it was up for six years).
The good news is most (all?) of those examples don’t use lunchbox. Since the topic is somewhat unrelated to the original (an implementation of another tool) I recommend starting a new topic with your progress on a generative method of your choice.
I’ll note that the concepts expressed in the links above can be used to get outcomes like this without too much effort. I can’t share the graph, but hopefully this will help serve as inspiration.
It worked with the same one error without the Lunchbox. Thanks. The version is 2018.7.7. But no luck with the adjacency, mass floor plan or multilevel 3d