Skip to content

Commit

Permalink
Update element.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jun 18, 2020
1 parent 8bcee99 commit 7d151d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions revitron/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ def __init__(self, element):
else:
self.element = element


def getBbox(self):
"""
Returns a bounding box for the element.
Returns:
object: The bounding box or false on error
"""
try:
return revitron.BoundingBox(self.element)
except:
return False


def getClassName(self):
"""
Expand Down

0 comments on commit 7d151d2

Please sign in to comment.