*ME_ModuleOccurrencesCreateByComponentMark

Moves a list of components underneath newly created parts for each component in the model hierarchy.

Syntax

*ME_ModuleOccurrencesCreateByComponentMark mark_id parent_id=<value>

Type

HyperMesh Tcl Modify Command

Description

Moves a list of components in the mark to the new parts created under the parent assembly in the model hierarchy. It will also move the connected components to the newly created parts. If the connected components have a part associated, then it will move the components to the existing part.

Inputs

mark_id
The ID of the mark containing the components to move. Valid values are 1 and 2.
parent_id
The ID of the part assembly to become the parent of the new parts created.

Examples

Place the components with ID 100, 101 and 102 under part assembly ID 8 in the hierarchy. New part will be created under parent ID 8 for all the component IDs. If the components are connected, they will be placed under one part.
*createmark comps 1 100 101 102
*ME_ModuleOccurrencesCreateByComponentMark 1 parent_id=8

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

2023