Say we have a CAD assembly where parts have been assigned material properties. How can we then have an empty material assignment inside mechanical when importing the CAD?
This is how it could possibly be done:
Open mechanical
Script
mat = Window.ActiveWindow.Document.Materials locmat= mat.Values im=mat.Count for i in range(1,im): (locmat[i].Delete())