AnsweredAssumed Answered

Apply material to body vs part document with Macro

Question asked by Swme Eng on May 16, 2017
Latest reply on May 25, 2017 by Swme Eng

     I am trying to figure out why my macro for setting material on a part isn't working, I basically copied and pasted the code from here: 2015 SOLIDWORKS API Help - Set Material Example (VBA)


But it doesn't work, no material is applied when I put in the file path for my part. Is there a way to set the material of a part file rather than the individual solid bodies?