*ME_PartsetCreateByAssemblyMark
Creates part sets for legacy assemblies, and parts for orphan components.
Syntax
*ME_PartsetCreateByAssemblyMark mark_id "?parent_partsetid=<value>? ?root_assemblyonly=<value>? ?resolve_conflicts=<value>? ?skip_mapped=<value>? ?flat_modules=<value>?"
Type
HyperMesh Tcl Modify Command
Description
Creates a part set per legacy assembly, imitating the legacy assembly hierarchy of the input mark in part set browser. It will also create parts for orphan components which lie directly under the root model under legacy assemblies.
An option to resolve conflicting hierarchy is available. This situation occurs for the parts with multiple components. When two components lie in different assemblies, mapping assemblies to part sets with the same part under different part sets gives you the wrong perception of assembly hierarchy. This conflicting situation is resolved by creating a part for each component and deleting the original part (if empty).
This command has an option to create nested or flat part hierarchy in the Part browser for orphan components under legacy assembly. Nested hierarchy option acts in a similar way to the "Create Parts" option on solver deck import. Flat part hierarchy results in all newly created parts for orphan components being placed directly under the root model in the Part browser.
Inputs
- mark_id
- The ID of the mark containing the legacy assemblies. Valid values are 1 and 2.
- parent_partsetid=<value>
- The valid ID of the existing part set under which you want to imitate the legacy assembly hierarchy with part set per legacy assembly. Default value is 0.
- root_assemblyonly=<value>
- The flag to convert or map root assemblies only. Leaf assemblies will be filtered out.
- resolve_conflicts=<value>
- The flag to resolve conflicts in part and legacy assembly hierarchy.
- skip_mapped=<value>
- The flag to skip already converted or mapped legacy assembly to part set.
- flat_modules=<value>
- The flag to create nested or flat parts hierarchy (for orphan components) in the part browser.
- parts_allorphancomps=<value>
- The flag to create parts for all the orphan components in the model.
Examples
*createmark assem 1 7 8 9
*ME_PartsetCreateByAssemblyMark 1 "parent_partsetid=1 skip_mapped=1 flat_modules=1"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2025.1