*moveincludecontents

Moves the contents of one include to another, with an option to delete the source include.

Syntax

*moveincludecontents source_id source_shortname dest_shortname delete

Type

HyperMesh Tcl Modify

Description

This command moves the contents of one include to another, with an option to delete the source include.

Inputs

source_id
The ID of the source include file. If this is not available, use 0 and specify source_shortname.
source_shortname
The shortname of the source include file. This is only used if source_id is 0 or cannot be found. If this is not required, specify double quotes "".
dest_shortname
The shortname of the destination include file.
delete
Flag to indicate if the source include should be deleted. Valid values are:
0 - Do not delete
1 - Delete

Example

To move the contents of include with shortname front_door to include with shortname front_door_new, deleting the source include:

*moveincludecontents 0 "front_door" "front_door_new" 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

10-SA1-120