*createcirclefromcenterradius

Creates a circle or arc given the center and radius.

Syntax

*createcirclefromcenterradius list_id vector_id radius angle offset

Type

HyperMesh Tcl Modify

Description

This command creates a circle or arc given the center and radius.

Inputs

list_id
The ID of the list containing the nodes to be used as center points. A circle or arc is created for each node in the list.
vector_id
The ID of the vector defining the circle normal, defined using the *createvector command. This must be set to 1.
radius
The radius of the circle or arc.
angle
The angle of the arc. To create a circle, set to 360.
offset
Sets the starting offset for an arc.

Examples

To create a circle centered at node 18, with radius 3.0, and in the plane whose normal is defined by (0.0, 0.0, 1.0):
*createvector 1 0.0 0.0 1.0
*createlist nodes 1 18
*createcirclefromcenterradius 1 1 3.0 360.0 0.0

Errors

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