|
发表于 2022-8-17 19:22:49
|
显示全部楼层
直接做条件输出,也不会过切{:}
IJK的条件输出
# This custom command should return
# 1 : Output BLOCK
# 0 : No output
global mom_logname
global mom_arc_angle
global mom_pos_arc_center
global mom_prev_pos
global mi
global mj
global mk
if { $mom_arc_angle > 180.0 } {
return 1
MOM_force once I J X Y
}
return 0
R的条件输出
# This custom command should return
# 1 : Output BLOCK
# 0 : No output
global mom_logname
global mom_arc_angle
if { $mom_arc_angle <= 180.0 } {
return 1
MOM_force once R X Y
}
return 0
|
|