VDefGetMotionRange 方法

描述
获取由 VDefTool、VDefArm、VDefLocal 和 VGoCenter 限制的动作范围值。

语法
Sub VDefGetMotionRange(ByRef MaxMoveDist As Double, ByRef MaxPoseDiffAngle As Double, ByRef LjmMode As Integer)

参数

  • MaxMoveDist
    表示移动最大距离的实数变量。
    若指定 0,则角度不受限制。(0 - 500, 默认值:200)
    VDeopfTool、VDefArm、VDefLocal 和 VGoCenter 用于限制范围。
  • MaxPoseDiffAngle
    表示工具方向 (UVW) 最大位移角度(度)的实数变量。
    若指定 0,则角度不受限制。
    仅影响 VDefLocal。(0 - 180, 默认值:45度)
  • LjmMode
    表示 LJM 模式的整数变量。

参阅
VDefTool 方法, VDefArm 方法, VDefLocal 方法, VGoCenter 方法, VDefSetMotionRange 方法

VDefGetMotionRange 示例
VB 例:

Dim maxMoveDist As Double  
Dim maxPoseDiffAngle As Double  
Dim ljmMode As Integer  
m_spel.VDefGetMotionRange(maxMoveDist, maxPoseDiffAngle, ljmMode)  

C# 例:

double maxMoveDist, maxPoseDiffAngle;  
int ljmMode;  
m_spel.VDefGetMotionRange(out maxMoveDist, out maxPoseDiffAngle, out ljmMode);