Slide background
Slide background

LRCZ Blog

Just another WordPress.com site

The Cheerful Insanity…

July 8, 2017

Programming is not for the feeble minded – and visual programming is no exception. I sat quite some time today on a problem that presented itself as enigmatic:

kaputt

Why would that not work? Or only partially? All the nodes in question are OOTB and in the same category:

Noname

So why…? I started digging around and finally found an answer – hidden in Dynamo itself – click the node in question > Right-click > Help – you’ll see that:

Noname

Click on “See more on the Dynamo Dictionary…” link on the bottom and you’ll get – a working sample graph:

Noname.png

Seems that some of the nodes needed the Element.Parametes Node in between – don’t ask me about that inconsistency…

hooray.png

And life is good…

Update:

Life is not good at all…

Upon further investigation this method does not work – the Element.Parameters Node returns gibberish when used on SharedParameterElement:

Noname

Consequently all depending nodes do the same:

Noname.png

I am wondering what is going on here… Smells like a bug… I’ll re-post as soon as I can figure that one out…

Update:

Reading the SDK apparently the Document class in the Revit API only exposes ParameterBindings:

Noname

ParameterBindings then only exposes the following properties:

Noname

So – my aim is to figure out weather a bound shared parameter is instance or type bound – this will not get me there… I’ll rethink…

Posted in: Uncategorized