*replacesetentitydata

Sets the data required for part replacement.

Syntax

*replacesetentitydata <option1>=<value1> ?<option2>=<value2>? … ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify

Description

Sets the data required for part replacement. This must precede any calls to *replacentitywithentity or *replacentitywithentitymark.

The input options may be specified in any order.

Inputs

componentname=<value>
The mark ID containing the components to be replaced. Valid values are 1 and 2.
componentpairstring=<value>
The list of existing and incoming component name pairs.
incomingonlyentities=<value>
The list of entity types that are set as 'accept incoming'.
preservemark=<value>
The mark ID for 'accept incoming' entities to be preserved. Valid values are 1 and 2.

Example

To replace components 301 and 302 with 501 and 502 respectively:

*createmark comps 1 301 302
*replacesetentitydata componentmark=1
*createmark sets 1 20 30
*createmark groups 1 20 30
*replacesetentitydata preservemark=1 incomingonlyentities={sets groups} componentpairingstring={{301 501} {302 502}}
*createstringarray 4 "tolerance=0.5" "keep_src_prop=1" "keep_src_mat=1" "keep_src_comp_cardimage=1"
*createmark comps 1 301 302
*createmark comps 2 501 502
*replacentitywithentitymark 1 1 2 1 4

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