*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
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).
- Bit0
-
- 0 – Only free edges of surfaces are rotated.
- 1 – Both free and internal edges rotate, thus creating boundaries between solids created from each individual surface.
- Bit1
- 0 – Create solid entities.
- Bit2
- 0 – Selected surfaces become part of solid boundary.
- comp_mode
- Determines how new solids are organized into components. Valid values are
- 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 unpredictable if surfaces from different components become a part of the same solid body).
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