KeyValueMetaData
Save properties to STK objects for search.
Syntax
KeyValueMetaData <ScenarioPath> {Option} [<Parameters>]
Related commands
Description
The STK Data Federate (SDF) is no longer available for you to search in.
The KeyValueMetaData connect command provides the ability to add properties to STK objects that you can search for in a repository.
The following table describes the Options and <Parameters>.
Option | <Parameters> | Description |
---|---|---|
AddPair | Key "<Name>" Value "<Value>" | Enter the new Key name and value. Spaces are not allowed in the key <Name>. |
ModifyPair | Key "<Name>" Value "<NewValue>" | Modify the value for the specified key. |
SetReadOnly | Key "<Name>" IsReadOnly {True | False} | Set the read only value for the specified key. |
RemovePair | Key "<Name>" | Remove the specified key pair. |
RemoveAll | n/a | Remove all key value pairs. |
Examples
Add two key value pairs, set one to read only, and then remove it.
KeyValueMetaData * AddPair Key "MyCity" Value "Beaver Falls"
KeyValueMetaData * AddPair Key "MyState" Value "Pennsylvania"
KeyValueMetaData * SetReadOnly Key "MyCity" IsReadOnly True
KeyValueMetaData * RemovePair Key "MyCity"
Return message
Group membership
This command belongs to the following group(s):
Version
12.10