update_mtype Script

Use this script to update a specific attribute for all models of a model type. If the attribute is a shared attribute of the model type, the script does not update the model's attribute. One advantage of this script is that you can use the model and attribute names at the prompt rather than their hexadecimal ID handles.
csp
Use this script to update a specific attribute for all models of a model type. If the attribute is a shared attribute of the model type, the script does not update the model's attribute. One advantage of this script is that you can use the model and attribute names at the prompt rather than their hexadecimal ID handles.
Note:
Set the CLIMNAMEWIDTH environment variable to 256. The high value prevents truncation of model names that can cause false matches when running the script.
This script has the following format:
update_mtype <model_name> \ <model_typename>[<attribute_name> | <attribute_id> <value>]
  • model_name | model_type_name
    Specifies a model name, or part of a model name, for a model of the model type for which the attribute update is done. You can specify any model of the model type in the command.
    The script then displays a listing of all model types that have models with names containing the model name argument that you entered. The script asks you to select a model type from the list.
    If you use the model name instead of the model type name, the script updates all models whose names include the string entered on the command line or at the prompt. In this case, all models of a given model type are not updated as described above.
    We recommend using the model name or model type name at the prompt and not handle.
  • attribute_name | attribute_id
    If you do not specify these arguments initially, the script prompts for attribute name or attribute id, when it runs. At this point, you must specify either the attribute name or part of the attribute name. The script then asks you to select from a list of attributes containing the text that you entered. You can run the entire script, therefore, without prior knowledge of the hexadecimal model type handles or attribute handles.