Adams Basic Package > Adams View > View Command Language > file > file temporary_settings apply

file temporary_settings apply

Allows you to apply the settings within one or more Temporary Settings Files (TSF) to a model.
A Temporary Settings File (TSF) contains sets of model parameter data that can be applied "temporarily" for a given simulation. When you apply an Adams Temporary Settings file with this command, the contents of that file actually replace those in the current Adams View database.

Format:

 
file temporary_settings apply
file_name =
String
model =
String

Example:

 
file temporary_settings apply &
file_name =
"c:\mydir\desktop\easy_model.tsf" &
model =
Model_1

Description:

 
Parameter
Value Type
Description
file_name
String
Specifies the name of one or more TSF files to be applied
model
String
Specify the model name

Extended Definition:

1. The default file extension is .tsf but it can be overridden by simply supplying a different extension.
2. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must enclose the name in quotes.
3. To apply multiple temporary settings files at once with this command separate the file names in the File_name argument commas like so: "c:\mydir\desktop\easy_model.tsf", "c:\myotherdir\files\moderate_model.tsf", "c:\mydir\other_files\aggressive.tsf"
4. The same object property or solver setting can be specified more than once in single apply command because it appears more than once within a single .tsf file and/or within the set of .tsf files specified in a single apply command. However, Adams View will apply only the value specified nearest the bottom of the last .tsf file in the list of files supplied through this apply command in which the redundant property/setting has been specified.
5. If an invalid value is specified for a given object property or solver setting, then Adams View will ignore this and move on to the next setting within the .tsf
6. The properties set via a "file temporary_settings apply" command can be returned to their original values using the "file temporary_settings revert" command
7. The revert command only reverts the settings from the most recently issued "file temporary_settings apply" command. So, be aware that issuing two (or more) apply commands without revert commands in between makes the changes from all but the last apply command unresponsive to the revert command.