*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.
- Bit1
- 0 – Create solid entities.
- Bit2
- 0 – Surfaces are offset in one direction (positive or negative based on the surface normal).
- Bit3
- 0 – Selected surfaces are disconnected from non-selected attached surfaces before creating solids.
- Bit4
- 0 – When extrusion is made in both directions (Bit2=1), delete original surfaces.
- Bit5
- 0 – Original selected surfaces become part of created solid boundary.
- 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
}