# Number of wall joints

**URL:** <https://forum.dynamobim.com/t/number-of-wall-joints/2118>\
**Category:** Developers\
**Tags:** revit\
**Created:** [September 7, 2015, 2:58pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118 "2015-09-07T14:58:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forum.dynamobim.com/u/Tom1)\
**Post date:** [September 7, 2015, 2:58pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/1 "2015-09-07T14:58:44Z")

</div>

Hi,

&nbsp;

i have been tasked with trying to come up with a way that you could count the number of wall joints in a building and what type of joint. for example a corner, crossing or if there are any walls that are not connected.

Any one got any ideas?

&nbsp;

Much apreciated,

&nbsp;

Tom

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [September 8, 2015, 8:50pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/2 "2015-09-08T20:50:49Z")

</div>

Tom,

This is a depressing task. I hope this cheers you up:

You can query the wall for all of the above properties like so:

![Capture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/c1936ce8d8b2386a1414b521570a10cf18d3337c.png)

&nbsp;

&nbsp;

This the code used in Python node:

![Capture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/f/f395ffbf003d6102c8c9ad86b210adddb5d9c1f5.png)

&nbsp;

&nbsp;

This should do it. The outputs are in the following order:

1. Is Wall Join Allowed at Start of Wall

2. Is Wall Join Allowed at End of Wall

3. Join Type at Start of Wall

4. Join Type at End of Wall

&nbsp;

Good luck!

---

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forum.dynamobim.com/u/Tom1)\
**Post date:** [September 9, 2015, 2:56pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/3 "2015-09-09T14:56:47Z")

</div>

Thank you for the reply, I keep getting the following error message.

&nbsp;

Any idea why ?

&nbsp;

[Wall Joint Type](http://dynamobim.com/wp-content/uploads/forum-assets/tom_denbyhotmail-com/09/09/Wall-Joint-Type.dyn)

&nbsp;

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “\<string\>”, line 43, in \<module\>  
File “\<string\>”, line 27, in ProcessList  
File “\<string\>”, line 27, in \<lambda$40\>  
NameError: global name ‘\_func’ is not defined

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [September 9, 2015, 4:22pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/4 "2015-09-09T16:22:15Z")

</div>

Check your spelling. This seems like an error that a case of misspelled variables would throw.

---

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forum.dynamobim.com/u/Tom1)\
**Post date:** [September 10, 2015, 2:28am UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/5 "2015-09-10T02:28:26Z")

</div>

Good morning,

thank you for your help through this it is much appreceated as im new to dynamo and never touched python before.

it seemes to be working ( to a degree)

my output seems to be giving the same reading far all the walls, am i mis understanding it or have i made an error some where please see the images below…

![Wall Joint Out Put](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/8/89fe1fac0e8c68f1ad34047c3b81022d7b096a69.jpg)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [September 10, 2015, 8:31am UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/6 "2015-09-10T08:31:22Z")

</div>

It seems like all of the walls will have that condition unless you specifically change it. Try using the wall join tool and modify one or two conditions. Then re-fresh the Dynamo definition and see if it also refreshed. When that happens it means that all walls have a default value assigned at creation and then it is only changed when wall join is modified manually. Remember that revit will automatically join walls unless specifically asked not to do so.

Try that and let me know if the definition is responding. If it is, then definition is not a problem. If its not then i can see if there are mistakes in it.

---

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forum.dynamobim.com/u/Tom1)\
**Post date:** [September 10, 2015, 12:28pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/7 "2015-09-10T12:28:56Z")

</div>

thank you for your help with this… one last question (Sorry)

is there a way to pull throught the angle of a joint, if wall has been allowed to join… please see image bellow

![Angle](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/d/da223be040ac2d569d30e8aebb2911cef3de3511.jpg)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forum.dynamobim.com/u/Tom1)\
**Post date:** [September 18, 2015, 8:11am UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/8 "2015-09-18T08:11:35Z")

</div>

This is great so far thank you…

I have been playing around with it for a few days now and was wandering if we could try and do some further work on it to make it extremly usable …

create an out put that reads T Junction, Angle (Miter), Cross, Abut.

all of these would need two out puts ‘PLAIN’ and ‘IREGULAR’

PLAIN - is would be the out put when the two walls that meet are of the same types.

IREGULAR - This is where they are of different types.

&nbsp;

If anyone could help me with this that would be great!

&nbsp;

Thanks in advance,

&nbsp;

Tom

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [June 24, 2020, 1:43pm UTC](https://forum.dynamobim.com/t/number-of-wall-joints/2118/9 "2020-06-24T13:43:31Z")

</div>

Just to refresh this post since it is old, and images cannot be made bigger. Here’s the answer wrapped up in new nodes in [archi-lab.net](http://archi-lab.net) package.

 ![2_WallJoins_2020-06-24_08-42-16](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/37954a14815fd1770b61af4264d84caa188ad384.png)
