Skip to content

Commit

Permalink
Update element.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Nov 13, 2020
1 parent 6ca9556 commit 81daa36
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 @@ -93,6 +93,19 @@ def getBbox(self):
except:
return False


def getCategoryName(self):
"""
Returns the category name of the element.
Returns:
string: The category name
"""
try:
return self.element.Category.Name
except:
return ''


def getClassName(self):
"""
Expand Down

0 comments on commit 81daa36

Please sign in to comment.