Hello,
I am using RVT 2022 and Dyn. 2.10. Currently I am struggling with this ERROR: Warning: TypeError : No method matches given arguments for Create: (<class ‘Autodesk.Revit.DB.Wall’>, <class ‘Autodesk.Revit.DB.Document’>, <class ‘Autodesk.Revit.DB.Line’>, <class ‘Autodesk.Revit.DB.ElementId’>, <class ‘bool’>) [’ File “”, line 34, in \n’]
Under my understanding, I am not calling that method. You will find the script below. I would really appreciate your support.
Thanks for your time.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
# The inputs to this node will be stored as a list in the IN variables.
Doc = DocumentManager.Instance.CurrentDBDocument
Lines = IN[0]
LevelId = UnwrapElement(IN[1]).Id
Walls = []
RVTLines = []
for line in Lines:
RVTLines.append(line.ToRevitType())
# """
TransactionManager.Instance.EnsureInTransaction(Doc)
for RVTLine in RVTLines:
Wall = Wall.Create(Doc, RVTLine, LevelId, False)
WallWraped = Wall.ToDSType(False)
Walls.append(WallWraped)
TransactionManager.Instance.TransactionTaskDone()
# Place your code below this line
# Assign your output to the OUT variable.
OUT = RVTLines