hm_ce_numlinkentities

Returns the number of link entities for the connector.

Syntax

hm_ce_numlinkentities id

Type

HyperMesh Tcl Query

Description

Returns the number of link entities for the connector.

Inputs

id
The ID of the connector to query.

Example

To get link information for connector ID 1 for all links:

set ce_id 1
set num_ents [hm_ce_numlinkentities $ce_id]
for {set count 0} {$count <= $num_ents} {incr count} {
  foreach {type info state rule} [hm_ce_getlinkinfo $ce_id $count] {  
    lappend linkArray($type) $info  
  }
}

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}