*modent_removecontentsbymark
Removes entities from a modular entity via a mark.
Syntax
*modent_removecontentsbymark modular_entity_type modular_entity_id content_entity_type content_mark_id
Type
HyperMesh Tcl Modify Command
Description
Removes entities from a modular entity via a 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_mark_id
- The ID of the mark containing the entities to remove. Valid values are 1 and 2.
Examples
Remove the subsystems with IDs 4, 6 and 8 from the contents of subsystem set 2:
*createmark subsystems 1 "by id only" 4 6 8
*modent_removecontentsbymark subsystemsets 2 subsystems 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