Sorry for late response. I think its a revit restriction when collaborating in a file. Sometimes my script works just after synchronizing Revit.
A workaround is that you enable “editable” in worksets, then the script works. But this means that noone else can work in that workset in the meanwhile(!!!). My workaround was to create an extra workset for my geometry (skylights) so it didnt ruin the fun for everyone else.
As far as I know then you borrow an element when you click it, but if you check editable on a workset then you borrow the entire workset.
It would be great if this workflow would work without checking out the worksets beforehand. Also, if you can assign worksets as a parameter when you “bake” geometry into revit.
Its nice that the workflow delete previous objects and overwrite with new inputs, but it doesnt pick up old objects from another session (like closing down rhino/revit and working on the files tomorrow). It would be nice if the component could pick up the old objects and overwrite them.