>>> with rpw.db.Transaction():
... rpw.revit.active_view.override.projection_line(s0.Id, color=[255,0,255])
...
[ERROR] Error in Transaction Context: has rolled back.
[ERROR] <type 'exceptions.Exception'>:Category cannot be overridden.
Parameter name: categoryId
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "D:\Dropbox\Shared\dev\repos\revitpythonwrapper\revitpythonwrapper.lib\rpw\db\transaction.py", line 43, in __exit__
Exception: (Exception('Category cannot be overridden.\r\nParameter name: categoryId',), '')
# ^ Exception is printed, but not full traceback
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Dropbox\Shared\dev\repos\revitpythonwrapper\revitpythonwrapper.lib\rpw\db\view.py", line 286, in projection_line
File "D:\Dropbox\Shared\dev\repos\revitpythonwrapper\revitpythonwrapper.lib\rpw\db\view.py", line 240, in _set_overrides
File "D:\Dropbox\Shared\dev\repos\revitpythonwrapper\revitpythonwrapper.lib\rpw\db\view.py", line 252, in _set_category_overrides
Exception: Category cannot be overridden.
Parameter name: categoryId