# Creating Beams between 2 objects

**URL:** <https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821>\
**Category:** Revit\
**Created:** [October 30, 2021, 2:43pm UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821 "2021-10-30T14:43:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TPadayachee](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@TPadayachee](https://forum.dynamobim.com/u/TPadayachee)\
**Post date:** [October 30, 2021, 2:43pm UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821/1 "2021-10-30T14:43:31Z")

</div>

I am very new to Dynamo. Only using it for just over a week now. I am trying to create a series of beams between 2 steel framing members. The script I tried to create doesn’t seem to be working. Initially I was getting an error message, it seems to be around the range that I created. I just can’t seem to get it resolved. Please could someone point me as to what I am doing wrong.

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

Now I am getting this message pop up.

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

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [October 30, 2021, 4:56pm UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821/2 "2021-10-30T16:56:17Z")

</div>

@TPadayachee In Dynamo, anything when written in double quotes is treated as a string.  
So your “1” represents number one in string format and that’s not what your nodes are looking for.

Change the “1” & “0” to simply 1 & 0 as shown below:

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

_Note: I would make those changes \> save the file \> close the file \> reopen the file and start working again_

---

<div class="post-metadata">

**Author:** ![TPadayachee](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@TPadayachee](https://forum.dynamobim.com/u/TPadayachee)\
**Post date:** [October 31, 2021, 12:53pm UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821/3 "2021-10-31T12:53:41Z")

</div>

Thanks mate. That worked a trick. Much appreciated.

---

<div class="post-metadata">

**Author:** ![TPadayachee](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@TPadayachee](https://forum.dynamobim.com/u/TPadayachee)\
**Post date:** [November 1, 2021, 12:51am UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821/4 "2021-11-01T00:51:50Z")

</div>

SO I encountered another issue. Just when I thought the script run which it did but it doesn’t present the beams to be modelled straight. Any ideas how I can resolve this from the amended script?

 ![Script 4-02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3ffedd6614eee4984ee829dcaa61a691645935b4.jpeg)  
 ![Script 4-01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8ef7a82380e8d14437a78fe98ca8f5d2e164741a.jpeg)

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 1, 2021, 1:15am UTC](https://forum.dynamobim.com/t/creating-beams-between-2-objects/69821/5 "2021-11-01T01:15:39Z")

</div>

The direction of the lines extracted for your set-out is different, so the points at parameters will not line up.

Add in a function similar to this to check if the direction of the set-out lines is consistent.  
Note that the ‘Vector.IsAlmostEqualTo’ node will only be helpful if set-out framing are aligned, angled framing will need a tweaked workflow.

 ![Create Parallel Beams](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/3166d95fc5d40b236d6c4aa848df855408b2f263.png)

[Parallel Beams.dyn](https://forum.dynamobim.com/uploads/short-url/fsLjbBuw0oiUqP9dHD5GT1Bit9h.dyn) (38.3 KB)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07d8db9f002789d8da6cd31790cf42b2379373b1.png)
