*solid_rotate
Rotates solids about an axis by 360 degrees and creates the swept volume.
Syntax
*solid_rotate solid_mark=<mark_id> axis=<value> base_point=<value> ?option1=<value1>? ?option2=<value2>? … ?optionN=<valueN>?
Type
HyperMesh Tcl Modify Command
Description
Creates a profile from the outline of one or more solids by spinning them around a fixed axis. The optional argument offset_dist can be used to give a distance value by which the spun outline is offset. You have the option to create surfaces from this outline or to create solids which represents the volume swept by the rotating input solids. At least one of the actions create_spunoutline, create_crosssection, or create_spunsolid needs to be enabled for the command to proceed.
Inputs
- solid_mark=<mark_id>
- The ID of the mark containing the input solids. Valid values are 1 and 2.
- axis=<value>
- The direction of the axis around which the input solids are spun.
- base_point=<value>
- The position of the spin axis.
- projection_point=<value>
- Together with ‘axis’ and ‘base_point’, it specifies the projection plane on which the spun outline is positioned. If not given, the plane is determined automatically.
- create_spunoutline=<value>
- Specifies whether spun outlines are created on the projection plane.
- create_crosssection=<value>
- Specifies whether spun profile surfaces are created.
- create_spunsolid=<value>
- Specifies whether solids are created.
- offset_dist=<value>
- When a positive offset distance is given, the spun outline is offset by this distance and the output spun profile surfaces or solids are defined using this offset outline. The default value is 0.
- offset_method=<value>
- 0 - Offset is done using Parasolid’s line offsetting functionality (default)
- dest_component=<value>
- current - New entities are created in the current component (default)
- comp_name=<value>
- The name of the component in which the result entities are created.
Examples
*createmark solids 1 2 3
*solid_rotate solid_mark=1 axis="0.0 0.0 1.0" base_point="2.0 3.0 5.0" create_spunoutline=1 create_spunsolid=1 create_crosssection=1 dest_component=named_comp comp_name="SPUN OUTLINE" offset_dist=5 offset_method=0
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022.3