3 Replies Latest reply on Nov 7, 2018 9:38 PM by Deepak Gupta

    Help needed running a macro on a pre-selected part in an assembly

    Adam Doerr

      I'm working on a macro that would work while in an assembly on one of its parts that the user pre-selects in the tree. Can anyone please provide tips or examples on how this can be done? My current macro works great when ran with the part opened, but I can't seem to get it to function from a selected part in an assembly. I think my main problem is with how to correctly setup the declarations and set them properly in the code. Note that I use VB with the built in Solidworks macro editor and I am pretty rusty with my programming skills so please try to explain it accordingly.