AnsweredAssumed Answered

Macro to get file path of selected parts in assembly

Question asked by Evan Dlugopolski on Aug 20, 2014
Latest reply on Aug 22, 2014 by 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!