Created
May 29, 2023 10:03
-
-
Save chuongmep/429c05b79dc7a9f051958c4510217968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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