Custom material parameter to Parts Custom parameter

Hi fellow DynaMITES :grin:

My first time into serious Dynamo scripting
I am trying to read a custom parameter assign to materials and transfer that to parts with matching material (Assigned from the parent element)
This is what I have so far… (Note: currently works on element selection, but will want it to autoselect items)
It’s assigning the parameter value to the wall parts (3 off) but not in the correct order.

Any input would be greatly appreciatedUCode-DYN

1 Like

OK I’m hoping someone can help me out as I’ve reached a roadblock…
I cannot get the parts order to match the wall construction (outer material, core, inner material), it’s retrieving them in numerical sort order resulting in incorrect transfer of custom parameter value being applied.


Mat-UCode Test 01052018.rvt (1.5 MB)

ISSUE RESOLVED… No Need for assistance.

Can you please share your solution and mark it?

1 Like

I went back to the original basic and found the solution was simple.
“KISS” as shown…

1 Like

Could you reupload that image and zoom in a little more when creating the screen capture as currently the text is not visible.

Thanks in advance! :wink:

Image updated… :grin:

1 Like