*convertlegacyentities
Converts any of the source legacy entities, in a particular solver interface, to a specified target entity.
Syntax
*convertlegacyentities source_entity_type target_entity_type
Type
HyperMesh Tcl Modify
Description
Converts any of the source legacy entities, in a particular solver interface, to a specified target entity.
This is typically used when an old HyperWorks Desktop file has legacy entities defined that need to be migrated to a new entity. For example, if there are old HyperWorks Desktop files with ANSYS contacts defined through the old Contact Manager via components, by executing this command they will be migrated from components to groups. It also updates the existing source entity relationships maintained with other entities (that are not converted) with the target entity equivalent.
Solver | Source and Target Types |
---|---|
ANSYS | comps, groups |
Nastran (MSC) | groups, contactgroups |
Note that the solver ID is an implicit input, obtained from the current solver template from which this command is executed.
Inputs
- source_entity_type
- The type of entity to convert. If there are no source entities of the requested type, no conversion is performed.
- target_entity_type
- The type of entity to convert into.
Example
To convert ANSYS contact components to groups:
*convertlegacyentities comps groups
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.130
2017.1 - Added support for Nastran (MSC) groups to contactgroups conversion.