Skip to content

Commit

Permalink
Update parameter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Nov 9, 2020
1 parent 4d002e9 commit eb0c68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revitron/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def set(self, value, paramType = 'Text'):
"""
if self.parameter == None:
from revitron import _
if Parameter.bind(self.element.Category.Name, self.name, paramType, (_(self.element).getClassName() == 'FamilySymbol')):
if Parameter.bind(self.element.Category.Name, self.name, paramType, _(self.element).isType()):
self.parameter = self.element.LookupParameter(self.name)
else:
print('Error setting value of parameter "{}"'.format(self.name))
Expand Down

0 comments on commit eb0c68a

Please sign in to comment.