hm_getdrawbeadattribute

Returns the attributes of the drawbar or drawbead created by the die module.

Syntax

hm_getdrawbeadattribute id

Type

HyperMesh Tcl Query Command

Description

Returns the attributes of the drawbar or drawbead created by the die module. The return value is a list of twelve parameters:
  1. Flag that identifies the insertion surface type (on_surf_type):
    • 1 - Addendum
    • 2 - Binder
  2. The tolerance value used to build the drawbar or the drawbead (tol).
  3. The x-component of the normal vector to the insertion surface (dirx).
  4. The y-component of the normal vector to the insertion surface (diry).
  5. The z-component of the normal vector to the insertion surface (dirz).
  6. The value of the right radius used to build the drawbar or the drawbead shape (right_radius).
  7. The value of the left radius used to build the drawbar or the drawbead shape (left_radius).
  8. The value of the right fillet used to build the drawbar or the drawbead shape (right_fillet).
  9. The value of the left fillet used to build the drawbar or the drawbead shape (left_fillet).
  10. The value of the hat length used to build the drawbar or the drawbead shape (hat_length).
  11. The ID of the guide line used to build the drawbar or the drawbead shape (line_id).
  12. The ID of the point used to identify the position (above or below the insertion surface) of the drawbar or the drawbead (ref_point_id).

Example

To get the drawbar attribute of the drawbar component with ID 15:

lassign [hm_getdrawbeadattribute 15] on_surf_type tol dirx diry dirz right_radius left_radius right_fillet left_fillet hat_length line_id ref_point_id

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

11.0.120