*solidcreatespinsurfwithoffsetangle
Create solids by rotating a set of selected surfaces around a given axis.
Syntax
*solidcreatespinsurfwithoffsetangle surf_mark rotation_plane start_angle end_angle options comp_mode
Type
HyperMesh Tcl Modify Command
Description
This command creates one or more solids by rotating a given set of surfaces around a given axis.
Inputs
- surfs_mark_id
- The mark containing the surfaces that you wish to rotate to create solids.
- rotation_plane
- The plane whose normal is used as the rotation axis and its base point used as the rotation center. This plane is created using the *createplane command.
- start_angle
- Degrees value of initial rotation angle: selected surfaces are rotated by this value before solid "sweeping" begins.
- end_angle
- Degrees value of final rotation angle: solid "sweeping" stops at this value.
- options
- Flags that indicate different modes for solid creation. Bit values are used and the
value is calculated as (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3).
- Bit0
- 0 - Only free edges of surfaces are rotated.
- Bit1
- 0 - Create solid entities.
- Bit2
- 0 - Selected surfaces become part of solid boundary.
- Bit3
- 0 - Solid surfaces are ignored as input.
- comp_mode
- Determines how new solids are organized into components. Valid values are:
Example
To create a solid by rotating surface 1 around an axis defined by the direction vector (1 2 3) with a rotation center at point (4 5 6) and using a full 360 degrees angle, creating a solid in the same component as surface 1, and keeping the surface 1 intact:
*createmark surfs 1 1
*createplane 1 1 2 3 4 5 6
*solidcreatespinsurfwithoffsetangle 1 1 0 360 4 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
10.0
2019 - Added new options Bit3.