*ME_ModuleOccurrencesReparent

Move a list of module parts or part assemblies underneath another part assembly in the model hierarchy.

Syntax

*ME_ModuleOccurrencesReparent child_ids parent_id ?options?

Type

HyperMesh Tcl Modify Command

Description

Move a list of module parts or part assemblies underneath another part assembly in the model hierarchy.

This is only allowed in cases where it does not break sub-assembly instancing.

Inputs

child_ids
The IDs of the modules to move, space separated in quotes.
parent_id
The ID of the module part (if empty and convertible to a part assembly) or module part assembly to become the parent.
?options?
List of input options, passed as a comma separated string enclosed in quotes. Valid options are:
matrix_mode=<mode>
0 - Retain the relative position of the child module (default). This may cause the part to translate if there are matrices stored at different levels in the hierarchy.
1 - Retain the absolute position of the child module.

Example

Place the module part assemblies 100, 101 and 102 under part assembly 8 in the hierarchy. No translation should take place since the parts positions are not changing relative to their parents.

*ME_ModuleOccurrencesReparent "100 101 102" 8 "matrix_mode=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