*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.
0 – Do not create spun outlines (default)
1 – Create spun outlines
create_crosssection=<value>
Specifies whether spun profile surfaces are created.
0 – Do not create spun surfaces (default)
1 – Create spun surfaces
create_spunsolid=<value>
Specifies whether solids are created.
0 – Do not create solids (default)
1 – Create solids by spinning the profile surfaces
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)
1 - Offset is done using AFC surface edge offsetting functionality
dest_component=<value>
current - New entities are created in the current component (default)
original - New entities are created in the component of the input solid
named_comp - New entities are created in the component defined in comp_name. If a component with the given name does not exist, it is created.
comp_name=<value>
The name of the component in which the result entities are created.

Examples

To create spun outlines, spun solid and its cross-section surface, with offset distance 5.0, by spinning solids ID 2 and 3 around the z-axis, based at point (2.0, 3.0, 5.0):
*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

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

Version History

2022.3