# Auto disallow and coping of beams

**URL:** <https://forum.dynamobim.com/t/auto-disallow-and-coping-of-beams/76950>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [May 26, 2022, 6:35am UTC](https://forum.dynamobim.com/t/auto-disallow-and-coping-of-beams/76950 "2022-05-26T06:35:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [May 26, 2022, 6:35am UTC](https://forum.dynamobim.com/t/auto-disallow-and-coping-of-beams/76950/1 "2022-05-26T06:35:39Z")

</div>

Hi all I am trying to disallow and autocoping of beams. The code works fine if I have all the rcc beams. But when it comes to steel beams, it is giving me an error. So please let me know where I am doing it wring !!

I am getting this error. Can anyone help me with this to resolve his ?

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

```auto
import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

#Unwrapping Dynamoelement to Revit element.
beams = UnwrapElement(IN[0])

#Do some action in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for beam in beams:
	StructuralFramingUtils.DisallowJoinAtEnd(beam,0)
	StructuralFramingUtils.DisallowJoinAtEnd(beam,1)
	
for b in beams:
	eu = b.ExtensionUtility
	eu.set_Extended(0,True)
	eu.set_Extended(1,True)
	
TransactionManager.Instance.TransactionTaskDone()

OUT = beams

```

the error is  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9f536a2f02a8bb56325e2c9243d0b902399602c0.png)

Please let me know

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 26, 2022, 10:00am UTC](https://forum.dynamobim.com/t/auto-disallow-and-coping-of-beams/76950/2 "2022-05-26T10:00:55Z")

</div>

@shashank.baganeACM ,

Stealbeams are not joining at all. I thing there are several conector-families. investigate topic advanced steel.

> **[Advance Steel | Preise ansehen & Advance Steel 2022 kaufen | Autodesk](https://www.autodesk.de/products/advance-steel/overview)**
>
> Nutzen Sie die Software Advance Steel für Stahlbau-Detailzeichnungen, Fertigung und Bauausführung. Kaufen Sie ein Abonnement für Advance Steel im Autodesk Online-Shop oder bei einem Vertriebspartner.

KR

Andreas
