AnsweredAssumed Answered

Remove Material

Question asked by Tony Szuta on Nov 7, 2013
Latest reply on Nov 7, 2013 by Tony Szuta

Hi everyone. It's been quite a while since I dabbled with any sort of code. I've got a simple task at hand that I hope someone can help me out with.


All that I am trying to do is remove material that has been assigned to a part. As for assigning material, I've got that working OK. I just need to do the opposite.


Here is the line of code I am using to apply a material from our library:


     swPart.SetMaterialPropertyName2 swApp.GetActiveConfigurationName(swPart.GetTitle), "**PathRemoved**/CustomMaterialLibrary.sldmat", "304 SS, 7 GA."


I've skimmed through the API help but can't seem to find what I am after. I have tried swPart.DELETEFRIGGINMATERIAL but for some reason it doesn't seem to work. LOL


Thanks in advance. Any help is appreciated as usual.