Auto disallow and coping of beams

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 ?

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

Please let me know

@shashank.baganeACM ,

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

KR

Andreas

1 Like