VDefSetMotionRange 方法

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

语法
Sub VDefSetMotionRange(MaxMoveDist As Double, MaxPoseDiffAngle As Double, 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 方法, VDefGetMotionRange 方法

VDefSetMotionRange 示例
VB 例:

m_spel.VDefSetMotionRange(100, 30, 1)  

C# 例:

m_spel.VDefSetMotionRange(100, 30, 1);