AnsweredAssumed Answered

How to I execute a simple Save Macro from a PDM Task Ad-In

Question asked by Rodney Martin on Sep 17, 2019
Latest reply on Sep 18, 2019 by Rodney Martin

Here is the situation.  I need to save a large number of drawings in my database.  Unfortunately, the migration tools and save functions executed from a PDM Task Ad-In does NOT trigger the update of PDM variables.  That is the purpose of this activity.  I have run macros from an open session, and that works, but only on the active window.  I wish to try executing a PDM Task that spawns a local .swp macro file to execute the save activity to see if this fixes the issue.


In my case, I do not even need to force a rebuild.  Simply a save will do.  This is what I intend to do.


  1. Check out the applicable drawings from a strategic search.  (I do NOT want this part of the Task, I can do this for myself to keep it simple).
  2. Select the checked out files, execute the Task Ad-In from menu selection
  3. Check files back in (Also done manually).


I need help writing the Task Ad-in script, as well as the .swp file will be called from the task.


Any takers?  If you know what you are doing, I would think this would be quite quick.  I'm not in that category of individuals.  Please  help!!


Thank you.