hm_getsourcecompsgroupsusingprefixbasenamesuffix

Returns a list of matching component IDs which have the same prefix-base-suffix name in the original model and an incoming model.

Syntax

hm_getsourcecompsgroupsusingprefixbasenamesuffix

Type

HyperMesh Tcl Query Command

Description

Returns a list of matching component IDs which have the same prefix-base-suffix name in the original model and an incoming model.

Inputs

None

Examples

For components that are matching as shown below (ID in brackets):

abc-comp1-123.1234 (1) abc-comp1-123-4.5678 (4)

xyz-comp2-345.123 (2) xyz-comp2-345.789 (3)

hm_getsourcecompsgroupsusingprefixbasenamesuffix
  {1 4 2 3}

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

2020.1