Aaron,
I believe what you are asking is how to "Specify Module" for a step that uses the ActiveX Automation adapter. Specifically, you probably want to know how set the value of the Create Object ring control to Attach to Active. Correct me if I am wrong.
There is nothing specific in API for configuring these settings. However, these settings are stored in hidden properties of the step. You can view them by enabling Show Hidden Properties in the Station Options, and then expanding the tree view for your step. The properties of interest are under the branch, Step.TS.SData.Call. You can modify the value of these properties either using expressions or using the Property Object methods of the TS API (e.g. SetValNumber). To change the step property setting for A
ttach to Active, you would change the value of Step.TS.SData.Call.CreateObject to 1.
There are limitations to the hidden step properties that you are changing. Please read the Developer Zone article "Hidden Properties of TestStand" before using the properties.
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/246f6c77f5ad473e86256a2c0055c0d0?OpenDocument
As to creating a local variable of ActiveX type, you can use the SetValIDispatch or SetValInterface on the Locals property. Set the option of these methods to 1 (insert if missing) and set the new value to Null or Nothing depending on your programming environment. This will insert the ActiveX variable.
One word of worning. Technically creating and editing sequence files programmatically makes the machine on which your application runs subject to a TestStand development license. This is to prevent people from developing their own sequence editor and using it/distributing it/selling with a less expe
nsive TS run-time license. The run-time license is designed for running test sequence rather than creating them.
Hope this helps.