*ME_ModuleOccurrenceConvert
Converts a module from part to part assembly and vice-versa.
Syntax
*ME_ModuleOccurrenceConvert id type reserved
Type
HyperMesh Tcl Modify Command
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.
- 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
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0