Apply classification code to pipe / duct systems

Hi,

I’d like to add a classifcation code (NL-SfB / Assembly code but on an instance level) to pipe and duct systems. Iam close to succes but cant connect the last dots, some of the pipe accesorries wont get the right parameter written into them.

Iam filtering the pipe and duct categories by System Type and then split them accordingly to the right system type to fill in the classifacion code parameter with for examble “56.30”

Can anyone fill the gap for me to make this script work properly?

WB_Classification Codes_Dynamo 2.6_Concept-1.dyn (97.9 KB)