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.

HELP PLEASE.

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