Run Script

Use the Run Script option to start a script created with the instructions in Scripting API. Such scripts are intended to assist in creating many similar parts by making simple changes to the script file.

If you are running scripts that create sketch edges, you should note that the Auto Constraint Global switch is turned off while running the script and then reset to its previous setting when the script finishes. For scripts written with the Write Script command, this is preferred as that command will put all the existing constraints in the script file. If you are writing your own script, you can control the Auto Constraint Global switch using the AutoConstraintGlobal command:

  • agb.AutoConstraintGlobal(agc.Yes); //Turns auto constraints on

  • agb.AutoConstraintGlobal(agc.No); //Turns auto constraints off

Other file management options: