# Please tell me how to use the Assembly.AddSubAssembly node

**URL:** <https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667>\
**Category:** Civil 3D\
**Created:** [February 19, 2021, 6:54am UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667 "2021-02-19T06:54:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oh\_ruki](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@oh\_ruki](https://forum.dynamobim.com/u/oh_ruki)\
**Post date:** [February 19, 2021, 6:54am UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/1 "2021-02-19T06:54:19Z")

</div>

Hello,  
I use Civil 3D Toolkit. very convenient.  
I need an assembly to create a corridor and I want to add a subassembly to that assembly, but I don’t know the input groupName, hookSubassembly, or hookpoint.  
please tell me.

---

<div class="post-metadata">

**Author:** ![david\_licona](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_licona/32/123672_2.png) [@david\_licona](https://forum.dynamobim.com/u/david_licona)\
**Post date:** [February 19, 2021, 9:00am UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/2 "2021-02-19T09:00:43Z")

</div>

Hi, see the images below :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31de3708914691a7c048ab1c480b319744693ca0.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/e/cee2a33ca6fa8aadee5e34515fd0734048d4703d.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22150c02564a57bdc1ec90c91383af4aec5e9995.jpeg)

---

<div class="post-metadata">

**Author:** ![oh\_ruki](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@oh\_ruki](https://forum.dynamobim.com/u/oh_ruki)\
**Post date:** [February 22, 2021, 1:11am UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/3 "2021-02-22T01:11:14Z")

</div>

Thank you for your politeness.  
I will refer to the above.

---

<div class="post-metadata">

**Author:** ![shahid.shaikh\_C3D](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@shahid.shaikh\_C3D](https://forum.dynamobim.com/u/shahid.shaikh_C3D)\
**Post date:** [February 26, 2021, 12:53pm UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/4 "2021-02-26T12:53:22Z")

</div>

@david_licona,

i was trying to create a assembly and subassembly using dynamo with above reference. But getting bellow error. (Please note this is a blank assembly and i am attaching it to a Left group ) My assumption was it will create a group if assembly group is blank please correct me if i am wrong.

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

can you please also explain little bit more about import stock subassembly node - Pardon my ignorance but from where to get the “Tool name” input for imported subassemblies

Thanks

---

<div class="post-metadata">

**Author:** ![david\_licona](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_licona/32/123672_2.png) [@david\_licona](https://forum.dynamobim.com/u/david_licona)\
**Post date:** [February 26, 2021, 6:26pm UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/5 "2021-02-26T18:26:57Z")

</div>

@shahid.shaikh_C3D

The node does create a groupe if it doesn’t exist. “Dereferencing a non-pointer”. My guess is that if you check the log file, it would say something like this : " ERROR: Could not find unassigned subassembly 'LaneSuperelevationAOR".

The import stock subassembly node adds the subassembly to the drawing (if you dont specify a point it will add it to the origin) and the Assembly.AddSubassembly node, assigns the previously added stock subassembly to the assembly (using its nickname).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/e/6e34832b0cf1948312213d9919f367fbbd3434bf.jpeg)

The tool name corresponds to the tool palette category

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/c/bce8ef5be733822596be9fa01cf3ed22d88b9b64.jpeg)

---

<div class="post-metadata">

**Author:** ![denis.erlichLQ8SB](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@denis.erlichLQ8SB](https://forum.dynamobim.com/u/denis.erlichLQ8SB)\
**Post date:** [July 15, 2022, 12:06am UTC](https://forum.dynamobim.com/t/please-tell-me-how-to-use-the-assembly-addsubassembly-node/60667/6 "2022-07-15T00:06:39Z")

</div>

David, good afternoon! Does the mechanism only works with Stock subassemblies? i have impoted my own .pkt, have same error ( dereferencing a nonpointer) , my subassembly was imported  
Thank you!
