*ME_ModuleOccurrencePurge

Empty the contents of a module part or part assembly.

Syntax

*ME_ModuleOccurrencePurge id ?options?

Type

HyperMesh Tcl Modify

Description

Empty the contents of a module part or part assembly.

Inputs

id
The ID of the module to purge. The module must be an occurrence.
options (optional)
List of input options, passed as a comma separated string enclosed in quotes. Valid options are:
resursive=<flag>
0 - Purge only the local module’s contents. Do not touch the child module’s contents (in the case of a part assembly).
1 - Recursively purge the module, as well as any child modules.
udm_id=<string>
The string ID from a UDM XML file for this part, if necessary.

Example

Purge part assembly 168 and any of its children recursively:

*ME_ModuleOccurrencePurge 168 "recursive=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