*CE_FE_RegisterSharedEntitiesByMark

Registers pre-existing entities to multiple connectors.

Syntax

*CE_FE_RegisterSharedEntitiesByMark mark_id entity_type_string_array number_of_strings id_integer_array number_of_integers

Type

HyperMesh Tcl Modify Command

Description

Registers pre-existing entities to multiple connectors.

Note that a single entity can be registered with multiple connectors.

Inputs

mark_id
The ID of the mark containing the connectors to register to. Valid values are 1 and 2.
entity_type_string_array
The ID of the string array containing the additional entity types to register. The array is created using the *createstringarray command. This should always be set to 1.
This array should either map one-to-one with id_integer_array or it should have a single index indicating all of the IDs are of the same entity type.
number_of_strings
Integer indicating the size (number of entity types) in the string array created using *createstringarray.
id_integer_array
The ID of the integer array containing the entity IDs to register. The array is created using the *createarray command. This should always be set to 1.
number_of_integers
Integer indicating the size (number of IDs) in the integer array created using *createarray.

Example

Change connectors 1-10 to the user-control mode:

*createmark connectors 1 1-10;
*CE_SetSpecificDetail 1 2 1 0;

Create the necessary arrays to register component 3, property 7, material 8, set 12 and group 14:

*createstringarray 5 "component" "property" "material" "set" "group";
*createarray 5 3 7 8 12 14;

Register the entities with connectors 1-10:

*createmark connectors 1 1-10;
*CE_FE_RegisterSharedEntitiesByMark 1 1 5 1 5;

Change connectors 1-10 back to normal control mode (optional):

*createmark connectors 1 1-10;
*CE_SetSpecificDetail 11 2 0 0;

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

2017.1