*ME_ModuleOccurrenceConvert
Converts a module/part to part assembly and vice-versa.
Syntax
*ME_ModuleOccurrenceConvert id type reserved
Type
HyperMesh Tcl Modify Command
Description
Converts a module/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 part to convert. The part must be an occurrence.
- type
- part - Converts the part assembly to a part. That means it will become a leaf in part hierarchy and cannot contain other parts or part assemblies, only other entity types. A part explicitly created as part assembly cannot be converted to part.
- reserved
- Reserved for future use. Must be set as "".
Example
Convert part 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