hm_getdeleteassociatedentitiesbycompmark

Returns the unique associated entities for the components on a mark.

Syntax

hm_getdeleteassociatedentitiesbycompmark input_mark_id output_mark_id

Type

HyperMesh Tcl Query

Description

Returns the unique associated entities for the components on a mark. The associated entities are returned for each selected component, as well as added to the output mark.

The return value is a "list of lists". Each list contains the following:

{component ID {entity type {entity IDs...}}}

For example:

{2 {comps 2}} {2 {loads {1 2 3 4 5 6 7 8 9 10}}} {2 {sets {1 2 3 4}}} {2 {props 1}} {2 {mats 2}} {3 {comps 3}} {3 {loads {1 2 3 4}}} {3 {sets {1 2 3 4}}} {3 {props 2}} {3 {mats 2}}

Inputs

input_mark_id
The ID of the mark containing the input components. Valid values are 1 and 2.
output_mark_id
The ID of the mark containing the output entities. Valid values are 1 and 2.

Example

To get the associated entities for component 4 on mark 1:

*createmark comps 1 4
hm_getdeleteassociatedentitiesbycompmark 1 2
{4 {comps 4}} {4 {loads {325 326}}} {4 {loadcols 2}}
hm_getmarkall 2
{nodes 7 8 9 10 11} {comps 4} {loads 325 326} {loadcols 2}

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