*ME_ModuleOccurrencesCreateByAssemblyMark

Creates parts and part assemblies for given legacy assemblies.

Syntax

*ME_ModuleOccurrencesCreateByAssemblyMark mark_id ?parent_id=<value>? ?mark_delete=<value>?

Type

HyperMesh Tcl Modify Command

Description

Creates parts and part assemblies for given legacy assemblies, mimicking the assembly hierarchy of the input mark. Each assembly component will be associated to the new parts (using a name based UID rule) and each legacy assembly will be associated to the new part assembly, maintaining a similar hierarchy. Legacy assemblies can be deleted afterwards.

Inputs

mark_id
The ID of the mark containing the legacy assemblies. Valid values are 1 and 2.
parent_id=<value>
The ID of the parent module (part assembly or root module). The root module is used by default.
mark_delete=<value>
The flag to delete the legacy assemblies after migration.
0 - Do not delete legacy assemblies after migration. (default)
1 - Delete legacy assemblies after migration.

Examples

To convert the legacy assemblies with IDs 7, 8, and 9, use part assembly ID 4 as the parent module and delete the legacy assemblies afterwards:
*createmark assem 1 7 8 9
*ME_ModuleOccurrencesCreateByAssemblyMark 1 parent_id=4 mark_delete=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

2022.1