I have decided to delve into the world of Dynamo and for my first script I am attempting to delete all of the unwanted line styles in a shared revit template.
I started by utilizing the “Delete-Imported-Line-Patterns-Using-Dynamo” script created by Konrad Sobon and modifying it to work for line styles instead of line patterns. All seemed to be working well until reaching the actual delete node. This node required a python script, which was provided. I inserted the python script but it failed to execute completely. I am thinking this is because the script was written to delete line patterns and not line styles.
Here is my Dynamo script -
The error message I receive -
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 35, in
AttributeError: ‘List[object]’ object has no attribute ‘Id’
If someone could point me in the right direction so that I might get this code to work I would appreciate it.
Should I provide a copy of the python script for better understanding?