# Multi-Level Program Massing/Space Planning Tool

**URL:** <https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682>\
**Category:** Revit\
**Tags:** share\
**Created:** [May 7, 2019, 8:30pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682 "2019-05-07T20:30:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.tran](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.tran/32/50552_2.png) [@daniel.tran](https://forum.dynamobim.com/u/daniel.tran)\
**Post date:** [May 7, 2019, 8:30pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/1 "2019-05-07T20:30:59Z")

</div>

Hello,

Attached is our rendition of Kyle Martin/Shepley Bulfinch’s Space Planning dynamo graph + supporting files:  
[https://dynamobim.org/home\_usecases/use-case-1/](https://dynamobim.org/home_usecases/use-case-1/)  
[https://dynamobim.org/space-planning-data-cycle/](https://dynamobim.org/space-planning-data-cycle/)

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!

[program massing dynamo player template.rvt](https://forum.dynamobim.com/uploads/short-url/nzAN4RmEynHqynXxMEYCBbOTHXA.rvt) (2.1 MB)  
[MOD-01\_2019.05.02.dyn](https://forum.dynamobim.com/uploads/short-url/ymy6O7y2nv2sjIgKNMngGpIydfD.dyn) (247.2 KB)  
[MOD-01 Program - Project Data\_2019.05.02.xlsx](https://forum.dynamobim.com/uploads/short-url/mGlsElnUVtL7ChFgLFZTZSxXyvD.xlsx) (23.9 KB)  
[MSS-Program-SpaceType-Box-UH.rfa](https://forum.dynamobim.com/uploads/short-url/chGWphCwsQMjrv5N2FCwQDWkPLg.rfa) (404 KB)  
[ANT-Mass-Program.rfa](https://forum.dynamobim.com/uploads/short-url/p4u3D8DZCw0gIhCPM3zKlIeRz2x.rfa) (256 KB)

---

<div class="post-metadata">

**Author:** ![clooz8](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/clooz8/32/95398_2.png) [@clooz8](https://forum.dynamobim.com/u/clooz8)\
**Post date:** [June 20, 2019, 11:56pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/2 "2019-06-20T23:56:53Z")

</div>

I’m looking into this workflow as well. It seems like this node doesn’t work despite changing the level.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/38f10eb8fa3de4c2ce7559761d13dd4d9b790871.png)

---

<div class="post-metadata">

**Author:** ![mcrowleyQ6PET](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mcrowleyQ6PET](https://forum.dynamobim.com/u/mcrowleyQ6PET)\
**Post date:** [June 1, 2024, 4:02pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/3 "2024-06-01T16:02:29Z")

</div>

I’m trying to utilize this workflow and getting nulls when I get to the Lunchbox mass addition. Any help would be appreciated.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/993a9e88660ddf0172dd871e4b6a4b52793b9a3b.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 1, 2024, 6:55pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/4 "2024-06-01T18:55:08Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 3, 2024, 10:34pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/5 "2024-06-03T22:34:51Z")

</div>

@Nathan_Miller @jacob.small @Vikram_Subbaiah @Zach_Kron @Mark.Ackerley

I would like to request veteran coders of this forum to modify the Lunchbox mass addition package. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 3, 2024, 11:29pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/7 "2024-06-03T23:29:33Z")

</div>

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

 ![Skærmbillede 2024-06-04 012702](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/3/b3518f1e0547b6ca570774d2c1fb1ac8d2bab4ee.png)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [June 3, 2024, 11:35pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/8 "2024-06-03T23:35:52Z")

</div>

If you want to simply add a list use the Sum node.

If you want cumulative sum (the other output), I have a working node in Crumple that outputs this for a list of numbers under Crumple \> Math.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 3, 2024, 11:36pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/9 "2024-06-03T23:36:49Z")

</div>

We can’t modify someone else’s code.

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.

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 1:05am UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/10 "2024-06-04T01:05:46Z")

</div>

Hope this will work-

 ![MOD-01_2019.05.02_2024-06-04_07-00-34 (2)](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f2c63d5d4443a6a81c554c96cbba8aacd8e0de97.png)

```auto
# 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

```

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 1:09am UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/11 "2024-06-04T01:09:23Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 4, 2024, 1:13am UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/12 "2024-06-04T01:13:10Z")

</div>

> [@Geom\_On\_Axis](#):
>
> Why not?

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.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [June 4, 2024, 2:47am UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/13 "2024-06-04T02:47:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 1:34pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/14 "2024-06-04T13:34:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mcrowleyQ6PET](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mcrowleyQ6PET](https://forum.dynamobim.com/u/mcrowleyQ6PET)\
**Post date:** [June 4, 2024, 3:58pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/15 "2024-06-04T15:58:21Z")

</div>

I was able to get Lunchbox to work when I installed the second to most recent version of Lunchbox. Thanks everyone.

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 8:06pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/16 "2024-06-04T20:06:58Z")

</div>

[MOD-01\_2019.05.02.dyn](https://forum.dynamobim.com/uploads/short-url/3uM1qkLicaWqpqwZ8E99e6KoBzo.dyn) (250.1 KB)

 ![MSS Program-space type_Level1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/7/57445b8fab011694ae395aade20ca75a9afb76bb.jpeg)  
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.

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 8:39pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/17 "2024-06-04T20:39:13Z")

</div>

Could you share your dyn file? Does it generate mass floor plan or multilevel 3d massing like this?-  
[https://dynamobim.org/home\_usecases/use-case-1/](https://dynamobim.org/home_usecases/use-case-1/)

Could you at least share the output images of floor plans and multilevel 3d mass form?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 4, 2024, 8:56pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/18 "2024-06-04T20:56:03Z")

</div>

> [@Geom\_On\_Axis](#):
>
> But now probably we need to solve the adjacency of the spaces to get an organized mass-floor plan or 3d.

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](https://forum.dynamobim.com/t/space-planning-on-existing-site-plan/90074/2), the [Dynamo blog](https://dynamobim.org/space-planning-in-dynamo-with-dynaspace-using-generative-design-in-revit/), [other blogs](https://www.keanw.com/2019/06/project-rediscover-is-now-available-for-download.html), [user blogs](https://parametricmonkey.com/2021/01/25/au-2017-exhibition-hall/), [conferences](https://www.autodesk.com/autodesk-university/class/Generative-Design-Hogwarts-Using-Tech-Instead-Magic-2020), the [generative design primer](https://www.generativedesign.org/04-sample-workflows/04-02_architectural-workflows/04-02-03_office-layout), 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.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 4, 2024, 9:03pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/19 "2024-06-04T21:03:28Z")

</div>

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.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/1/a1b86319c5bec88fb4614f1d32f2fd721c902176.gif)

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [June 4, 2024, 11:52pm UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/20 "2024-06-04T23:52:36Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![mcrowleyQ6PET](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mcrowleyQ6PET](https://forum.dynamobim.com/u/mcrowleyQ6PET)\
**Post date:** [June 13, 2024, 1:26am UTC](https://forum.dynamobim.com/t/multi-level-program-massing-space-planning-tool/35682/21 "2024-06-13T01:26:56Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e28350d06fef681f687b603fa181c5ebfb8c2f4.png)  
[space planning\_Test1.dyn](https://forum.dynamobim.com/uploads/short-url/pmD2wTDGNTYAx1hug4tPgdMlqM2.dyn) (429.3 KB)

Sorry for the late reply. Here’s the dyn file. Hope this helps.
