Hi everyone,
I would like to retrieve the names of the nodes I used in my definition. Specially those which had been renamed to new names.
Is there any way to get them as a String?
Thank you!
MS
Hi everyone,
I would like to retrieve the names of the nodes I used in my definition. Specially those which had been renamed to new names.
Is there any way to get them as a String?
Thank you!
MS
For what I want to do, The way JohnP said is the way to go.
I didn’t know DYN files were XML!
The attribute I need is called “NickName”.
More to follow as I dig into this!
MS
Looking forward to the results! Check out the nodes file.frompath and file.readtext. I also just remembered that Bakery might have some stuff for this.
I wish I had something like doc.name referencing Dyn document instead of Revit one…
This might be doable, I’ll see if I can do some digging as well.
Until now, I have learn that there is an attribute of the items in <Elements> called “Nickname” of every node in the script. This is the name we see as header in the nodes.
I’m still figuring out how to separate the “renamed” ones from the rest.
All this goes because I want to write a script to auto-generate the presets file (JSON format) for Dynobrowser, without or very few human intervention!
Stay tuned!
MS