*createsimpleblock
Creates a simplified block entity.
Syntax
*createsimpleblock name color min_x min_y min_z max_x max_y max_z
Type
HyperMesh Tcl Modify
Description
This command creates a simple block entity with the specified name and color.
Inputs
- Color
- Allowable values are 1 through 64.
- min_x
- This value indicate the minimum x coordinates of the block.
- min_y
- This value indicate the minimum y coordinates of the block.
- min_z
- This value indicate the minimum z coordinates of the block.
- max_x
- This value indicate the maximum x coordinates of the block.
- max_y
- This value indicate the maximum y coordinates of the block.
- max_z
- This value indicate the maximum z coordinates of the block.
Note: A simple block is different from a finite difference block which has additional items
such as divisions, total walls, cells, etc.
Examples
To create a simple block named my_block with the color gray (11),
minimum coordinates of (0,0,0) and maximum coordinates of
(10,5,2):
*createsimpleblock my_block 11 0 0 0 10 5 2
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}