Skip to content

Support Statement: Using a gmAPI executable with gmStudio

The paradigm for using a gmAPI executable with gmStudio is a bit different than using gmStudio with gmBasic. The difference begins with setting the TScript field on a gmProj Task. To use gmBasic, the TScript field specifies and gmPL translation script template. To use a gmAPI executable, the TScript field is set to the path of a gmAPI.exe file.

  • gmBasic: gmStudio prepares an actual translation script (JobID.xml) for the task being processed by detokenizing %placeholders% and merging ScriptRules with the template translation script file specified by the Tscript field.
    gmStudio then spawns gmBasic.exe as a separate process passing the actual translation script as a command line argument. gmBasic.exe executes the actual translation script.
  • gmAPI: gmStudio prepares a task information file (JobID.xml) based on the attributes of the task being processed. gmStudio spawns your gmAPI Exe (e.g. Upgrade.exe) passing the task information file as a command line argument. Upgrade.exe uses the TaskInfo, ScriptRules , and gmslLibrary APIs as needed to invoke gmBasic services.

gmAPI reference and samples are here: gmAPIIntroduction