Trying to replicate a pipe to dwg workflow and stuck to line 35 of code. Any ideas on why the error??
Thanks
John
Trying to replicate a pipe to dwg workflow and stuck to line 35 of code. Any ideas on why the error??
Thanks
John
Your end transaction is indented in the for loop.
Un-indent the TransactionTaskDone() and this should fix that issue
The tab!!! Omg Have a long way to go… Thanks
Didnt work error is still the same
Oh, and you’re missing a line of code that should read doc = DocumentManager.Instance.CurrentDBDocument
Python this in line 10
Apologies, I’m using my mobile and the screens buggered
What’s the error message?
Ah, you have declared doc as IN[5] (line 30). Try hashing that out
Can you upload your files? I’ll have a look on the pc.
Hi @i.tzivanidis ,
EnsureInTransaction needs a Autodesk.Revit.DB.Document
you’re giving it a Revit.Application.Document
The line doc = DocumentManager.Instance.CurrentDBDocument should fix that though. Doesn’t need a port for document.
That’s actually just what @Daniel_Woodcock1 suggested
doc=DocumentManager.Instance.CurrentDBDocument
is the right syntax?
Hi @i.tzivanidis,
It runs, but you have an error on line 39 where second point is not capitalised. Problem is that it is still running. The script is doing quite a bit it seems and there are warnings about your lines being too short. I started running this about 5 mins ago and it is still going…