*createblockwithsystem

Creates a simplified block entity with a local coordinate system.

Syntax

*createblockwithsystem name color syst_id 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

name
Name of the block.
color
Color of the block. Valid values are 1 through 64.
syst_id
Local coordinate system to assign to the block.
0 - To use the global system.
min_x
Minimum x-coordinate of the block. This value is specified relative to the local syst_id.
min_y
Minimum y-coordinate of the block. This value is specified relative to the local syst_id.
min_z
Minimum z-coordinate of the block. This value is specified relative to the local syst_id.
max_x
Maximum x-coordinate of the block. This value is specified relative to the local syst_id.
max_y
Maximum y-coordinate of the block. This value is specified relative to the local syst_id.
max_z
Maximum z-coordinate of the block. This value is specified relative to the local syst_id.
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), local coordinate system ID 2, minimum coordinates of (0, 0, and 0) and maximum coordinates of (10, 5, and 2) relative to the local system:
*createblockwithsystem my_block 11 2 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
}

Version History

9.0