Hi, everyone!
I’m building a code to create column’s formwork but when I create a wall by profile and sometimes this profile is a rectangular profile. I got a not edited profile wall.
I’m not sure what is happening. This only happen when profile is a rectangular profile.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *
clr.AddReference('System')
from System.Collections.Generic import List
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
#Preparing input from dynamo to revit
element = UnwrapElement(IN[0])
MuroEncofrado = UnwrapElement(IN[1])
Nivel = UnwrapElement(IN[2])
#Do some action in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
#Lista con las curvas de los muros de tipo "RevitType"
CurvasRevit=[]
for i in element:
A=[]
for j in i:
A.append(j.ToRevitType())
CurvasRevit.append(A)
Muros=[]
for i in CurvasRevit:
Muros.append(Wall.Create(doc, i, MuroEncofrado.Id,Nivel.Id,False))
for i in Muros:
WallUtils.DisallowWallJoinAtEnd(i,0)
WallUtils.DisallowWallJoinAtEnd(i,1)
TransactionManager.Instance.TransactionTaskDone()
OUT = Muros