It has been a very long time since I have posted and indeed since I have used Dynamo.
I am currently working in Dynamo Revit 126.96.36.19910 and Revit 2023.1.
I have created a super basic script using the latest versions of Orchid, Data-Shapes and clockwork.
I know the upgrade went from 2 to 3, but how do I modify these Python nodes to get them to work with the script? I thought that the updated packages would contain python 3 but it appears they dont.
Here is the script I put together just to test
When I save the file and reopen, this is the message I get:
When I install the requested IronPython2 dependency, nothing happens. I’m just a little unsure of the process now days if someone could point me in the right direction I would appreciate that.
thanks a lot!
you can download it from the package manager both
Thanks, I do currently have them both installed, but when I run nothing happens, just blanks across the board. Anything else that it could be?
seems to be in the clockwork node…
…data-shapes works well i got GUIs
thats the code…
from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager
inputdoc = UnwrapElement(IN)
if inputdoc == None:
doc = DocumentManager.Instance.CurrentDBDocument
elif inputdoc.GetType().ToString() == "Autodesk.Revit.DB.RevitLinkInstance":
doc = inputdoc.GetLinkDocument()
elif inputdoc.GetType().ToString() == "Autodesk.Revit.DB.Document":
doc = inputdoc
else: doc = None
version = IN
names = 
cats = 
vag = 
pgs = 
pts = 
uts = 
isvis = 
elems = 
guids = 
isinst = 
bics = 
iterator = doc.ParameterBindings.ForwardIterator()
if version > 2021:
elem = doc.GetElement(iterator.Key.Id)
if elem.GetType().ToString() == 'Autodesk.Revit.DB.SharedParameterElement':
if iterator.Current.GetType().ToString() == 'Autodesk.Revit.DB.InstanceBinding':
thesecats = 
builtincats = 
for cat in iterator.Current.Categories:
# Return null if category is not supported by Dynamo
# This way the user knows there are unsupported categories assigned
OUT = (names,cats,vag, pgs, pts, uts, isvis, elems, guids, isinst, bics)
Thanks so much, you’re right, it’s something to do with the clockwork node.
I replaced it with an Orchid one for now to at least get the data, thanks for that.
Hi, Andreas. Is it enough though to install the python packages? I got this weird issue with Genius Loci package which used to worked perfectly, now some nodes do, others don’t. Related to Legend Component, I used it the Create Legend Component effortlessly in previous versions, now it stopped working. I switched manually the python version and ran the utility, but still nothing. The only Legend Component related node from GL that I could still use as a workaround method (use a template of legend and just switch the types) is Select by View. However, this node is still using Python 2, I haven’t updated it yet. So what other methods to update to the newest Python for all packages are there? For example Genius Loci is the latest version so I didn’t even think it needs updating. What am I doing wrong? Hope this is not too all over the place and explanation. Thanks in advance!
I confirm that it is enough to install the DynamoIronPython2.7 package for the Genius Loci package nodes to work normally. You don’t have to take any editing action.
Good old package reinstall did the trick, apollogies for reopening the subject.