*modent_addcontentsbyids

Adds entities to a modular entity via IDs.

Syntax

*modent_addcontentsbyids modular_entity_type modular_entity_id content_entity_type content_entity_ids representation_key

Type

HyperMesh Tcl Modify Command

Description

Adds entities to a modular entity via IDs. Selection by IDs is mainly useful for adding include entities, which cannot be selected by mark.

Include contents will be merged.

Inputs

modular_entity_type
The type of modular entity to update. Valid values are subsystemconfigurations, subsystems and subsystemsets.
modular_entity_id
The ID of the modular entity to update.
content_entity_type
The type of entity to add.
content_entity_ids
A quoted list of the entity IDs to add.
representation_key
The representation key of the subsystem to populate. This defaults to the only realized representation and can be omitted.

Examples

Add the contents of includes 4, 6 and 8 under subsystem 2:
*modent_addcontentsbyids subsystems 2 includes "2 4 6"

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