Hi,
I am trying to script a disallow wall end join and before anyone point it out . Yeah I know there are few other post out there with the same topic but non of them has really worked for me.
Furthermore, I have tried the âDisallowJoinAtEndâ in Zhukoven package and it did not work either.
So I have decided to try the python myself and have found a curtain wall in engipedia that works perfectly for me with the curtain walls
https://www.engipedia.com/disallow-joins-on-curtain-walls-with-dynamo/
Code
#Start of generic stuff imports
import clr
#import Revit API
clr.AddReference(âRevitAPIâ)
import Autodesk
from Autodesk.Revit.DB import *
#import Revit Elements
clr.AddReference(âRevitNodesâ)
import Revit
clr.ImportExtensions(Revit.Elements)
#import DocumentManager and TransactionManager
clr.AddReference(âRevitServicesâ)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
#Get current Revit document
doc = DocumentManager.Instance.CurrentDBDocument
#End of generic stuff imports
#Unwrap input
inputs = UnwrapElement( IN[0] )
curtainWalls =
#Initiate counter
n = 0
#Get only curtain walls from input
for e in inputs:
try:
elementType = doc.GetElement(e.GetTypeId())
if elementType.Kind == WallKind.Curtain:
curtainWalls.append(e)
n = n + 1
except:
print(ânot curtain wallâ)
#Start Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for e in curtainWalls:
Autodesk.Revit.DB.WallUtils.DisallowWallJoinAtEnd(e, 0)
Autodesk.Revit.DB.WallUtils.DisallowWallJoinAtEnd(e, 1)
#End Transaction
TransactionManager.Instance.TransactionTaskDone()
#Wrap results
OUT = ["Disallowed joins on walls: " + str(n), curtainWalls]
But as I have absolutely no experience with python I donât have a clue to what to change to this script for it to work with walls.
Could anybody help me out?
Thanks in advance