*ME_ModuleOccurrenceReparent
Move a module part or part assembly underneath another part assembly in the model hierarchy.
Syntax
*ME_ModuleOccurrenceReparent child_id parent_id ?options?
Type
HyperMesh Tcl Modify
Description
Move a module part or part assembly underneath another part assembly in the model hierarchy. This is only allowed in cases where it does not break sub-assembly instancing.
Inputs
- child_id
- The ID of the module to move. The module must be an occurrence.
- 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 (optional)
- 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.
Example
Reparent module 100 under part assembly 8 in the hierarchy, keeping the absolute matrix:
*ME_ModuleOccurrenceReparent 100 8 "matrix_mode=1"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0