Stumbled upon another supposedly simple issue, but that strangely enough just does not work. I would like to get the VersionNumber or VersionBuild of the current revit application from within a dynamo python node. My plan was to use
app = DocumentManager.Instance.CurrentUIApplication.Application to ask for
VersionBuild, but when I assign ‘app’ i get the following:
I’ve seen this is more than one example, even from Autodesk (http://dynamoprimer.com/en/09_Custom-Nodes/9-5_Python-Revit.html). Whats wrong here?
import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager OUT = DocumentManager.Instance.CurrentUIApplication.Application