*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 HyperMesh file has legacy entities defined that need to be migrated to a new entity. For example, if there are old HyperMesh 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.

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

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.130