Macro Language Reference > Macros > System > run
  
run
Description
Allows PTC ALD to run a macro file that has been saved to disk via the tsavetxt macro.
 
Example 241. Restore saved variables
run "c:/all_vars.3m"
Restores the variables that have been saved to a file called all_vars.3m.
run "myvars.3m"
Restores the variables that have been saved to a file called myvars.3m.
run "d:/3d/types.3m"
Restores the variables that have been saved to a file called types.3m in the folder d:/3d/.
Syntax
run macro file:s
macro file
The full name and path of the macro file to be run.
Additional Information
Using this function you could, for example, run a macro file from a document startup script (autoexec.sc) that would load tags from a master template document or update text with information from a database. Macro files are also, of course, easier to write than scripts and are worthwhile if you find yourself repeating certain sequences of complicated macros in your work with APP.
Related Links