10 Replies Latest reply on Aug 22, 2014 9:43 AM by Evan Dlugopolski

    Macro to get file path of selected parts in assembly

    Evan Dlugopolski

      Hello all,

       

      I have been working on a macro to attach the current open part in an email to quickly send to a coworker.  I would now like to add on to it to make it a little more flexible.

       

      I would now like to take the macro and determine if it is an assembly or a part.  If it is a part it will run as is.  If it is an assembly I would like the macro to go through all of the component parts and get the file path for the parts and attach them to the email as well as the assembly file. This would be fine but I would like even more flexibility...

       

      The ideal would be to be able to select the parts either from the tree or right in the assembly model and have the macro only get the file paths of the selected models...

       

      If anyone has an idea how to get the file paths of selected models in an assembly please share!  thanks!

       

      Evan