*modent_registerconstraintruleoptions
Registers a list of options that control the behavior of add/move/remove operations for a modular entity.
Syntax
*modent_registerconstraintruleoptions modular_entity_type modular_entity_action independent_entity_type dependent_entity_type add_behavior_for_dependent_entity_type add_behavior_for_shared_dependent_entity_type
Type
HyperMesh Tcl Modify Command
Description
Registers a list of options that control the behavior of add/move/remove operations for a modular entity. Valid entity combinations are:
Independent Entity Types | Dependent Entity Types |
---|---|
beamsectcols | beamsects |
components | elements |
components | materials |
components | nodes |
components | properties |
loadcols | loads |
materials | curves |
properties | materials |
systcols | systems |
vectorcols | vectors |
Inputs
- modular_entity_type
- The type of modular entity. Currently only supported for subsystems.
- modular_entity_action
- The type of modular entity action:
- independent_entity_type
- The type of independent entities to add/move/remove to/from modular entities.
- dependent_entity_type
- The type of dependent entities to add/move/remove to/from modular entities.
- add_behavior_for_dependent_entity_type
- 0 - Do not add/move/remove to modular entities
- add_behavior_for_shared_dependent_entity_type
- 0 - Do not add/move/remove independent entities to modular entities if they have any dependent entities shared with other modular entities
Examples
When adding/moving/removing components to subsystems, add/move/remove properties and shared
properties:
*modent_registerconstraintruleoptions subsystems 2 components properties 1 2
When adding/moving/removing components to subsystems, add/move/remove nodes, but prevent
the action if there are any nodes shared with other
subsystems:
*modent_registerconstraintruleoptions subsystems 2 components nodes 1 0
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