Instructions
This macro listens for swAssemblyAddItemNotify when a user drops a component from the task pane. The component is then saved to the same location as the assembly.
PRECONDITION: Assembly is open
RESULT: See smart messages
This is not an ideal solution for toolbox because the user never has a chance to choose a configuration. Consequently the first configuration gets chosen by default.
The “Failed to open file” occurs when the user attempts to insert a component that was already previously added while this macro was running and if the parent assembly was never re-opened in-between additions. (In other words, run this macro and then try inserting the same component two times in a row.)
Files
Save component after dropped from task pane (public version)