Skip to main content
Skip table of contents

get_current_rotm(ref)

Features

This function returns the direction and matrix of the current tool based on the ref coordinate.

Parameters

Parameter NameData TypeDefault ValueDescription

ref

Int

DR_BASE

reference coordinate

  • DR_BASE : base coordinate
  • DR_WORLD : world coordinate

Return

ValueDescription

float[3][3]

Rotation matrix

Exception

ExceptionDescription

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

Example

PY
rotm1 = get_current_rotm(DR_WORLD) 
#rotm1 : rotation matrix(3x3) based on the world coordinate

# The result value is stored in a 3x3 matrix


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.