# How to create separate assemblies of each element in a list

**URL:** <https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637>\
**Category:** Uncategorized\
**Created:** [September 7, 2017, 2:47pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637 "2017-09-07T14:47:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 7, 2017, 2:47pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/1 "2017-09-07T14:47:56Z")

</div>

Hello,  
I have a list of elements. How do I create individual assemblies of each item? I am using the Tools.CreateAssembly node but that takes all the elements and makes into one assembly.  
Thanks

---

<div class="post-metadata">

**Author:** ![Renzoj14](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/renzoj14/32/49196_2.png) [@Renzoj14](https://forum.dynamobim.com/u/Renzoj14)\
**Post date:** [September 7, 2017, 6:06pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/2 "2017-09-07T18:06:18Z")

</div>

Please provide image / example

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 7, 2017, 6:54pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/3 "2017-09-07T18:54:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c25e41ed36e2c53c2601618aaae24b66750d9129.png)

The script is filtering down to only the structural elements that I need to have an assembly created for. As shown, I even tried using “List Chop” to separate each element into separate lists, but it still consolidates them all back into one assembly.

Thanks for your time!

---

<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:** [September 8, 2017, 3:11am UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/4 "2017-09-08T03:11:06Z")

</div>

Try enabling levels, @@L1.

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 8, 2017, 12:39pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/5 "2017-09-08T12:39:47Z")

</div>

Jacob, please provide further information on how to do this. I tried enabling levels under both the “Filter Element List by Parameter Value” node and the “Tool.CreateAssembly” node and it still consolidated all elements into one assembly. So not sure if this is what you meant to try.

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:** [September 8, 2017, 12:59pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/6 "2017-09-08T12:59:19Z")

</div>

I meant at the create assembly node.

You could also try setting lacing to longest.

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 8, 2017, 1:49pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/7 "2017-09-08T13:49:32Z")

</div>

I tried using List Map. It worked once. But then had issues with multiple identical elements and locking up during the process.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/e/1ee0041e500e99d6cc936206100930f55f403168.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:** [September 8, 2017, 2:09pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/8 "2017-09-08T14:09:08Z")

</div>

Old school. I like it. 😄

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 8, 2017, 5:23pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/9 "2017-09-08T17:23:25Z")

</div>

Yeah. Setting the lacing to Longest worked also, but it to, locked up when there were two identical elements. I need to figure out how to get it to ignore duplicates and move on or at least treat it like Revit does when one assembly matches another. Any guidance would be appreciated.

---

<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:** [September 8, 2017, 6:33pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/10 "2017-09-08T18:33:23Z")

</div>

List.Unique beforehand maybe?

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [September 11, 2017, 2:04pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/11 "2017-09-11T14:04:01Z")

</div>

Hi @staylor,

Does the top part of your script work properly (Tool.RenameAssembly) ?  
If you have identical elements, the “Mark” parameter should also be identical for these elements.  
Maybe you can check if this is true.

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 11, 2017, 7:19pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/12 "2017-09-11T19:19:46Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d1944e9814225321061714d1582f6b06164be48a.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63a5ed7ce39a7189fbfe71355e81a9cc89fa749a.png)

Broke this up to make sure it was legible. Everything works now except for the “Tool.AssemblyViews”. It pulls in all of the elements correctly and weeds out the duplicates. Then creates an assembly of each element and names each assembly appropriately. However, for some reason, the script locks up when it tries to create the assembly views. I have that part frozen in my second view.

Thanks for everyone’s so far.

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 11, 2017, 7:51pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/13 "2017-09-11T19:51:58Z")

</div>

Found out why it crashes. I have two pieces exactly the same, so it made both an assembly and gave both the same assembly name. So technically there were more assembly instances than assemblies. So it confused the AssemblyView creator.

---

<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:** [September 11, 2017, 10:41pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/14 "2017-09-11T22:41:48Z")

</div>

Nice work!

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 12, 2017, 1:17pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/15 "2017-09-12T13:17:59Z")

</div>

Thanks!  
Again, I appreciate everyone’s input!

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 12, 2017, 5:28pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/16 "2017-09-12T17:28:00Z")

</div>

Okay, not sure if I need to start a new thread for this. I am trying to fix the issue about Assembly.Views crashing as stated above. Does anyone know how to get and set parameter values from an assembly?

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [September 13, 2017, 9:23am UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/17 "2017-09-13T09:23:30Z")

</div>

Hi @staylor,

Here’s my workflow (a lot similar to yours i think).  
It creates an Assembly Instance for every Generic Model (Family Instance), but it only creates a sheet and planview for “unique” Assembly Instances.  
At the bottom a added two examples on how to edit parameter values.

 ![Generic Models_Create Assembly_v03c](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/f/bf31038611f56d645f6fb1a21c9f5f0a18f6c442.png)  
[Generic Models\_Create Assembly\_v03c.dyn](https://forum.dynamobim.com/uploads/short-url/abruVF1593a6CLya0DH7iLLLG2q.dyn) (26.7 KB)

I hope it can be of help.

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 13, 2017, 3:26pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/18 "2017-09-13T15:26:56Z")

</div>

Mark,  
Thanks for the suggestion. Unfortunately, I need the elements instance parameter values and the Element.Parameter node doesn’t pull that information from an assembly. Or at least it doesn’t when I tried it.

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [September 17, 2017, 7:40am UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/19 "2017-09-17T07:40:19Z")

</div>

Hi @staylor,

Have you solved it ?  
If not what are the parameters you are looking for ?  
The default instance parameters or custom parameters.

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 18, 2017, 12:25pm UTC](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637/20 "2017-09-18T12:25:47Z")

</div>

Mark,

I need custom instance parameter values. I have a work around using third party software, but any input to resolve my issue with the script would be welcome.

Thanks

[Next page](https://forum.dynamobim.com/t/how-to-create-separate-assemblies-of-each-element-in-a-list/14637.md?page=2)
