*modent_addcontentsbymark

Adds entities to a modular entity via a mark.

Syntax

*modent_addcontentsbymark modular_entity_type modular_entity_id content_entity_type content_mark_id representation_key

Type

HyperMesh Tcl Modify Command

Description

Adds entities to a modular entity via a 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_mark_id
The ID of the mark containing the entities to add. Valid values are 1 and 2.
representation_key
The representation key of the subsystem to populate. This defaults to the only realized representation and can be omitted.

Examples

Add components 4, 6 and 8 under subsystem 2:
*createmark comps 1 "by id only" 4 6 8
*modent_addcontentsbymark subsystems 2 comps 1

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