Hi,
How can I find the latest archi-lab version for my Dynamo 1.x?
My office has developed some script using the 1.x Dynamo version.
In addition, my office centralizes all packages in the same path. I am “obliged” to work with this version of Dynamo and also with those packages.
Is it possible to work with different versions of packages at the same time?
One version would be installed, and another version is in a folder.
If you are not apposed to using a little bit of python, something like this would work really easily.
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
#The inputs to this node will be stored as a list in the IN variables.
levelNames = IN[0]
level = []
allLevels = FilteredElementCollector(doc).OfClass(Level).ToElements()
for n in levelNames:
lvl = None
for l in allLevels:
if n == l.Name:
lvl = l
level.Add(lvl)
#Assign your output to the OUT variable.
OUT = level