*collectorcreatesameas
Creates a new collector by copying data from an existing collector.
Syntax
*collectorcreatesameas type name existing_name material color
Type
HyperMesh Tcl Modify
Description
Creates a new collector by copying data from an existing collector. Entities contained in the existing collector are not copied, only attributes and relevant data names.
Inputs
- type
- Collector type to create. Valid values are:
- component
- property
- material
- loadcols
- systcols
- vectcols
- name
- The name of the new collector.
- existing_name
- The name of an existing collector to create the new collector the "same as". Use a blank name to ignore this option.
- material
- The name of the material collector to which the new collector should point. This parameter is ignored unless a component or property collector is being created. A blank material name will create a material collector with the same name as the new component.
- color
- The color of the new collector. Valid values are 1 through 64.
Examples
To create a component named Wheel_Left the same as the component named Wheel_Right with
material Steel and color
50:
*collectorcreatesameas component Wheel_Left Wheel_Right Steel 50
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}