*ME_ModuleOccurrenceConvert

Converts a module from part to part assembly and vice-versa.

Syntax

*ME_ModuleOccurrenceConvert id type reserved

Type

HyperMesh Tcl Modify

Description

Converts a module from part to part assembly and vice-versa, assuming it’s allowed from the current hierarchy status and entity containment rules. To check if the conversion is allowed, use hm_me_moduleoccurrenceconvert_isallowed.

Inputs

id
The ID of the module to convert. The module must be an occurrence.
type
part - Converts the module to a part. That means it will become a leaf in module hierarchy and cannot contain other parts or part assemblies, only other entity types. A module explicitly created as part assembly cannot be converted to part.
assembly - Converts the module to a part assembly. That means it will be able to hold other parts and part assemblies, as well as other entity types based on entity containment rules.
reserved
Reserved for future use. Must be set as "".

Example

Convert module ID 168 from a part assembly to a part:

*ME_ModuleOccurrenceConvert 168 part ""

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

14.0