Skip to content

Commit 504ab04

Browse files
authored
Select Entities without Tags - Fixed Syntax Error
Elif without If is throwing an error
1 parent 369bf6f commit 504ab04

File tree

1 file changed

+1
-1
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Selection.panel/select.stack/Select.pulldown/Find And Select Entities Without Tags.pushbutton

1 file changed

+1
-1
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Selection.panel/select.stack/Select.pulldown/Find And Select Entities Without Tags.pushbutton/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
untagged_elements = []
238238
for eltid in target_tags:
239239
elt = revit.doc.GetElement(eltid)
240-
elif HOST_APP.is_newer_than(2022, or_equal=True):
240+
if HOST_APP.is_newer_than(2022, or_equal=True):
241241
if elt.GetTaggedLocalElementIds() != DB.ElementId.InvalidElementId:
242242
tagged_elements.append(List[DB.ElementId](get_elementid_value(elt.GetTaggedLocalElementIds())[0]))
243243
else:

0 commit comments

Comments
 (0)