*ME_ModuleOccurrencesPurge

Empty the contents of multiple module parts or part assemblies.

Syntax

*ME_ModuleOccurrencesPurge ids ?options?

Type

HyperMesh Tcl Modify Command

Description

Empty the contents of multiple module parts or part assemblies.

Inputs

ids
The IDs of the modules to purge, within quotes.
?options?
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.

Example

Purge part assemblies 168, 169, 170 and any of their child parts or part assemblies, removing all of their contents except for property and material entities. Remove representation reference information.:

*ME_ModuleOccurrencesPurge "168 169 170" "recursive=1, excluded_entity_types=props mats, reset_representation=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

2017.1