How can I get the Structural material thickness and write the value on Mark Mark parameter via dynamo

I tried to use the same script here but it didn’t work