*createcollectorforpartiallycontained

Creates a collector and moves certain entities into the collector.

Syntax

*createcollectorforpartiallycontained entity_type mark_id name config type reserved

Type

HyperMesh Tcl Modify Command

Description

Creates a collector and moves certain entities into the collector.

Inputs

entity_type
Entity type to move into the collector. Valid values are:
  • elems
  • loads
  • systs
  • vectors
mark_id
The mark ID containing the entities to move. Valid values are 1 and 2.
name
The new collector name. The collector type is determined by the entity_type.
config
Set to a valid config value to specify if only entities of that config should be moved. Otherwise, set to 0.
Currently only supported for elements.
type
Set to a valid type value to specify if only entities of that type should be moved. Otherwise, set to 0.
Currently only supported for elements.
reserved
Reserved for future use. Must be set to 0.

Examples

To create a component named comp2 and move elements 1-100:
*createmark elems 1 1-100
*collectorcreateforpartiallycontained elems 1 comp2 0 0 0
To create a component named comp2 and move only quad elements from elements 1-100:
*createmark elems 1 1-100
*collectorcreateforpartiallycontained elems 1 comp2 104 0 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

11.0.101