Hi,
I have a floor, and i need to create a negative element, to do this…
I have a dwg with all negative drawings that i have to do…

I was thinking in 2 ways…
1º) Convert all dwg lines and create a model-in-place (empty), and after cut the floor.
I already created the lines from dwg, but can’t create a model-in-place…
and another way is…
2º) Create a floor using all lines from dwg… and after JOIN and invert JOIN.
In this case, i need help to create a floor using lines or curves from dwg.

Hi,
I suppose you’re trying to do something like that?
import clr
clr.AddReference('RevitAPI')
clr.AddReference("RevitServices")
clr.AddReference("RevitNodes")
import RevitServices
import Revit
import Autodesk
from Autodesk.Revit.DB import *
clr.ImportExtensions(Revit.GeometryConversion)
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
floors = UnwrapElement(IN[0])
holes = UnwrapElement(IN[1])
polys = UnwrapElement(IN[2])
lst = []
TransactionManager.Instance.EnsureInTransaction(doc)
for j, l in zip(polys, floors):
for k in holes:
ln = k[0].ToRevitType()
pt = ln.GetEndPoint(0).ToPoint()
test = j.ContainmentTest(pt)
if test == True:
crvArr = CurveArray()
for m in k:
crvArr.Append(m.ToRevitType())
doc.Create.NewOpening(l, crvArr, True)
lst.append("Kesilen Döşeme")
TransactionManager.Instance.TransactionTaskDone()
OUT = lst
Thanks for the answer.
Look, my problem is that i have no rectangles.
This is my dwg… with 8 lines

I’m using this nodes to create lines in revit…
As you can see, in the final, i have ONE LIST, with all lines…
Actually, i dont need to do holes in the floor, if was possible to create floors according the lines in dwg, it would be good.
Look into the group curves node in Archilab as well. 