Creating and Using Object Templates with DSim

You can use STK objects as templates to model entities received through a DSim DIS or HLA entity provider. Take the following steps to create each object that you want to use as a template:

  1. Create an object in STK and configure it according to your need. You can add child objects (for example, transmitters or sensors) and define parameters for both parent and child objects as you require.
  2. Highlight the object and select Save <object name> from the File menu. Save the object under a name that will make the object easy to identify. By default, STK will save the object to the scenario folder. If you intend to use this object as a template in many scenarios, you should create a separate folder in a convenient location so that you have one folder where all of your objects can be stored and accessed.

Once you have created the objects that you want, take the following steps to associate them as templates for the entities that you want to model with them:

  1. With the RT3 Display Manager running in STK, insert or edit an existing DIS or HLA provider.
  2. In the Provider Configuration window, click the ellipsis button next to the Configuration File field to select the configuration file that you want to use, or proceed to the next step if the desired file is already selected.
  3. Click Edit... next to the Configuration File field to launch the Configuration File Editor.
  4. Click Add... in the upper-right corner of the Configuration File Editor to insert a new Entity Type entry.
  5. Define the Kind, Domain, Country, Category, SubCategory, Specific and Extra fields in the new entry that correlate to the object or objects in the simulation that you want to model with an object template in STK. If you are defining a group of objects to re-use the same template, simply set the fields you don't care about to "Don't care (-1)".
  6. Double-click the Model field for the new entry; this will launch the Model and Template Settings window.
  7. Select Use template file and then click the ellipsis button to browse to the object and select it. Click OK to close the window and return to the Configuration File Editor.

When you are finished associating entities with objects, click Save to save the changes you have made to the configuration file, or Save As… to save the file under a new name.

The Configuration File is now set to utilize the objects as templates. Whenever an entity matching one of the entity types you have defined is received from the simulation, the specified STK object will be loaded to represent the entity.

Finally, when defining a query, take the following steps to display the 3D graphics model that you have assigned for the object for each instance returned by the query:

  1. In the RT3 Query Configuration window, in the Model section, select Field.
  2. In the associated drop-down menu that activates, select ModelFile.