There are two or three parts to the .wsc type plugin:
1. There is a .xml file that tells STK or ODTK about the plugin. This file needs to be copied into either:
• <install folder>/Plugins - The default for STK would be C:\Program Files\AGI\STK 11\Plugins.
• <user folder>/Config/Plugins - The default for STK would be C:\Users\<user name>\Documents\STK 10\Config\Plugins.
2. There is a .wsc file. This one needs to be registered with Windows. To register it, open up a command prompt as an administrator. Note that you have to use the command prompt that matches the STK/ODTK install.
• In a 32-bit version of Windows, use the regular command prompt (C:\Windows\System32\cmd.exe) to register a plugin for the 32-bit version of STK or ODTK.
• In a 64-bit version of Windows:
• Use the 32-bit command prompt (C:\Windows\System32\cmd.exe) to register a plugin for the 32-bit version of STK/ODTK.
• Use the 64-bit command prompt (C:\Windows\SysWOW64\cmd.exe) to register a plugin for the 64-bit version of STK.
• After you open the correct command prompt as an administrator, change your directory to where the .wsc file is saved, then register the file using the regsvr32 command. For example, to register the HPOP plugin that updates drag coefficient as a function of mach, use:
3. Optionally, add a file containing the plugin code if the code is not contained in the wsc. This file could be "vbs, pl, m, ... ". The advantage of placing the code in a separate file and not the .wsc is that you can edit this code file and there is no need to re-register it after every update.