Get host revit version in pyrevit

Hello,

Trying to get the hosting revit session version in pyrevit without success.
On pyrevit docs they mention using this.

thank you for your help
J

from pyrevit import revit, DB, UI
from pyrevit import script
from pyrevit import forms

from pyrevit import HOST_APP

hostapp = _HostApplication(revit)
print hostapp.is_newer_than(2017)

This is the dynamo forum and not a PyRevit area therefore i would suggest you visit the pyrevit github page to ask for help/guidance on coding for Pyrevit.

1 Like