Skip to content

Commit

Permalink
fixed issue #1240 [tool]
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed May 17, 2021
1 parent 896ff2e commit 1123052
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ def get_isolation_elements(selected_switch):
for elId in elements:
el = revit.doc.GetElement(elId)
if len(list(el.GetMaterialIds(True))) > 0:
element_to_isolate.Append(elId)
element_to_isolate.Add(elId)
elif isinstance(el, DB.Wall) and el.IsStackedWall:
memberWalls = el.GetStackedWallMemberIds()
for mwid in memberWalls:
mw = revit.doc.GetElement(mwid)
if len(list(mw.GetMaterialIds(True))) > 0:
element_to_isolate.Append(elId)
element_to_isolate.Add(elId)
return element_to_isolate

elif selected_switch == "Model Elements":
Expand Down

0 comments on commit 1123052

Please sign in to comment.