I am trying to select an existing grid, get the start/end coordinates and then make more girds based on that. I have the following code and have tried others from online without success. This is my first attempt at writing something so please don’t judge.
from Autodesk.Revit import DB
from Autodesk.Revit import UI
from pyrevit import revit, UI
#Input from selection
crv = revit.uidoc.Selection.PickObject(UI.Selection.ObjectType.Element)
startpoints = []
for crv in curves:
startpoints.Add(crv.StartPoint)
print(startpoints)
OUT = startpoints
startpoints()