Untagged Rebar Python Help


I have been using a script that notifies me of any untagged rebars but when I have gone to use it in Revit 2022 I get an error message:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 26, in
TypeError: expected object, got NoneType

I have no knowledge of Python and any help would be much appreciated.

RebarCheckUntaggedBars-MultiplePartition.dyn.dyn (22.0 KB)


Are there tagged Rebars?

yes when I run the script

@kieran.atherton Can you send your rvt file?

sorry, its a security-sensitive project we are working on so I cant send any models over, however, when I copy the wall with the rebar over to a new Revit model and run the script it works fine. The script worked fine in 2020 but now has errors. :disappointed:

yes, it flags up any bars that are not tagged.