Skip to content

Commit

Permalink
Merge pull request #4 from yschindel/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jun 20, 2022
2 parents 35f8521 + 501d7ef commit 24427c1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions revitron/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ def getSolids(self):
solids = []
try:
for geo in self._geometry:
for item in geo.GetInstanceGeometry():
try:
for item in geo.GetInstanceGeometry():
try:
if item.Volume:
solids.append(item)
except:
pass
except:
try:
if item.Volume:
solids.append(item)
if geo.Volume:
solids.append(geo)
except:
pass
except:
Expand Down

0 comments on commit 24427c1

Please sign in to comment.