Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I finally found a way to solve my problem.
It appears that PTC_MATERIAL_NAME can't be modified directly, so I had to create a new empty material with the desired name, and to assign it to the part.
Then all works perfectly !