*modent_removecontentsbyids

Removes entities from a modular entity via IDs.

Syntax

*modent_removecontentsbyids modular_entity_type modular_entity_id content_entity_type content_entity_ids

Type

HyperMesh Tcl Modify Command

Description

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

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 remove.
content_entity_ids
A quoted list of the entity IDs to remove.

Examples

Remove the contents of include 2 from subsystem 3:
*modent_removecontentsbyids subsystems 3 includes "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

2020