Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Oct 30, 2020
1 parent f2cdd80 commit 71f6aa8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions revitron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
.. data:: REVIT_VERSION
The version number of the running Revit application as integer value.
The version number string of the running Revit application.
.. _function:
"""
Expand Down Expand Up @@ -113,7 +113,7 @@

DB = Autodesk.Revit.DB
LIB_DIR = parent(parent(__file__))
REVIT_VERSION = int(pyrevit.HOST_APP.uiapp.Application.VersionNumber)
REVIT_VERSION = pyrevit.HOST_APP.uiapp.Application.VersionNumber


def _(element):
Expand Down
2 changes: 1 addition & 1 deletion revitron/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def getDuplicateInstances(self, preferOlderElement = False):
list: A list with duplicate instances, either the younger or the older ones.
"""
import revitron
if revitron.REVIT_VERSION < 2018:
if revitron.REVIT_VERSION < '2018':
revitron.Log().error('Method revitron.Document.getDuplicateInstances() is not supported by this Revit version!')
return []
index = 1
Expand Down
2 changes: 1 addition & 1 deletion revitron/failure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This is helper submodule for handling errors.
This is a helper submodule for handling errors.
"""
from Autodesk.Revit.DB import IFailuresPreprocessor

Expand Down

0 comments on commit 71f6aa8

Please sign in to comment.