*ME_ModuleOccurrenceMoveContents

Move the contents from one module part to another.

Syntax

*ME_ModuleOccurrenceMoveContents source_id target_id ?"option1=value1, option2=value2, ..., optionN=valueN"?

Type

HyperMesh Tcl Modify

Description

Move the contents from one module part to another.

Inputs

source_id
The ID of the source module part whose contents are being moved.
target_id
The ID of the target module part receiving the contents.
options (optional)
List of input options, passed as a comma separated string enclosed in quotes. Valid options are:
purge_target=<flag>
0 - Keep the original destination part contents alongside the moved contents.
1 - Default. Purge/delete the target module’s contents before starting the move operation.

Example

Delete the contents in part 40, and then move the contents of part 30 to part 40:

*ME_ModuleOccurrenceMoveContents 30 40 "purge_target=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

14.0