*ME_ModuleOccurrencePurge

Empty the contents of a module part or part assembly.

Syntax

*ME_ModuleOccurrencePurge id ?options?

Type

HyperMesh Tcl Modify Command

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:
excluded_entity_types=type1 type2 … typeN
A space separated list of module entity types to not remove.
reset_representation=<flag>
0 - Keep representation reference information.
1 - Remove representation reference information.
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

2017.1 - Added new options values excluded_entity_type and reset_representation.