3 Replies Latest reply on May 25, 2017 10:51 AM by Swme Eng

    Apply material to body vs part document with Macro

    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?