Skip to content

Commit

Permalink
Update parameter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Dec 2, 2020
1 parent 8cbf10f commit 9d6dbcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions revitron/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def set(self, value, paramType = 'Text'):
value (string): The value
paramType (string, optional): The `parameter type <https://www.revitapidocs.com/2019/f38d847e-207f-b59a-3bd6-ebea80d5be63.htm>`_. Defaults to "Text".
"""
if not self.name:
return False
if self.parameter == None:
from revitron import _
if Parameter.bind(self.element.Category.Name, self.name, paramType, _(self.element).isType()):
Expand Down

0 comments on commit 9d6dbcd

Please sign in to comment.