Hello world!
I’m new to Dynamo and the forum, first time posting.
I have a script to change text to upper, but I have trouble figuring out how to only filter text notes that arn’t in a group, cause if the text notes are in a group Dynamo asks to ungroup those instances in order to run the script, which I don’t want to do.
I’m guessing this will return null if the text node is not in a group, and this information you’d be able to use as filter. It will require a simple python script though, which I’m guessing (no offense intended) will be a limitation for you at this point. I’d be happy to help you, but Im not at a computer at the moment. If no one has helped you out, I’ll take a look at this tonight
import clr
#Import the Revit API
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
#Start scripting here:
OUT = [str(i.GroupId) for i in UnwrapElement(IN[0])]
Thank you so much @MartinSpence!
It works like a charm!
This thing with community and helping each other is a new thing to me, hopefuly I will one day do the same for someone else
Next thing up, learn python
Yes @3Pinter, that is indeed a fine thought. The reasoning for keeping the python part as simple as possible and doing the filtering part with nodes, was for educational purposes, since Jonas wrote he was new to Dynamo.