Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created May 29, 2023 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/429c05b79dc7a9f051958c4510217968 to your computer and use it in GitHub Desktop.
Save chuongmep/429c05b79dc7a9f051958c4510217968 to your computer and use it in GitHub Desktop.
import clr
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
#The inputs to this node will be stored as a list in the IN variables.
path = IN[0]
listout = []
for p in path:
info = BasicFileInfo.Extract(p)
version = info.Format
listout.append(version)
OUT = listout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment