*ME_ModuleOccurrenceCreate
Creates a module part or part assembly.
Syntax
*ME_ModuleOccurrenceCreate name ?"option1=value1, option2=value2, ..., optionN=valueN"?
Type
HyperMesh Tcl Modify Command
Description
Creates a module part or part assembly.
Inputs
- name
- The name of the module to create.
- options (optional)
- List of input options, passed as a comma separated string enclosed in quotes. Valid
options are:
- parent_id=<id>
- The ID of the module part or part assembly you wish to make this module a child of. If not specified, the new module is placed underneath the root model module.
- structural_type=<type>
- part or assembly. A part is the default if not specified, and can coverts to a part assembly. A part assembly cannot be converted to a part.
- udm_id=<string>
- The string ID from a UDM XML file for this part, if necessary.
Example
Create a new Part module named "mypartname" as a child of the module with ID 2:
*ME_ModuleOccurrenceCreate mypartname "parent_id=2, structural_type=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