*solid_offset_from_surfs

Create solids by normally offsetting a set of selected surfaces.

Syntax

*solid_offset_from_surfs mark_id offset options comp_mode

Type

HyperMesh Tcl Modify

Description

This command creates solids by normally offsetting a set of selected surfaces.

Inputs

mark_id
The mark of input surfaces. Valid values are 1 and 2.
offset
The distance to offset along the normal direction.
options
Flags that indicate different modes for the offset. Bit values are used and the value is calculated as (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3 + 16*Bit4 + 32*Bit5).
Bit0
0 – Only free edges of surfaces are offset.
1 – Both free and internal edges are offset, thus creating separate solids from surfaces separated by shared edges.
Bit1
0 – Create solid entities.
1 – Create only boundary surfaces.
Bit2
0 – Surfaces are offset in one direction (positive or negative based on the surface normal).
1 – Surfaces are offset in both directions.
Bit3
0 – Selected surfaces are disconnected from non-selected attached surfaces before creating solids.
1 – Connectivity between selected and non-selected surfaces is preserved.
Bit4
0 – When extrusion is made in both directions (Bit2=1), delete original surfaces.
1 – When extrusion is made in both directions (Bit2=1), keep original surfaces and use them as separating surfaces between created solids.
Bit5
0 – Original selected surfaces become part of created solid boundary.
1 – Copy of original selected surfaces is made before creating solids.
comp_mode
Determines how new solids are distributed into components:
  • 0 - Solids are created in the current component and boundary surfaces are moved to the same component.
  • 1 - Solids are created in the current component, but surfaces remain in their original component.
  • 2 - Solids are created in the same component as the selected surfaces (the result is not predictable if the surfaces are originally in different components).

Example

To create a solid by offsetting surface ID 3 a distance of 5.0 along both the positive and negative normal directions and to organize the input surface into the same component as the solid:

*createmark surfs 1 3
*solid_offset_from_surfs 1 5.0 4 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}