QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
8天前
查看: 3933|回复: 2
收起左侧

[已解决] ug后处理加入刀具信息判断错误

[复制链接]
发表于 2015-9-7 09:19:46 | 显示全部楼层 |阅读模式 来自: 中国上海

马上注册,结识高手,享用更多资源,轻松玩转三维网社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
global mom_tool_name mom_tool_type
6 {( `9 U3 Q# o1 j: B6 {5 J/ h3 qglobal mom_tool_diameter mom_tool_corner1_radius mom_tool_flute_length
4 w% E- Y, @2 y8 aglobal mom_tool_length tip_angle mom_tool_point_angle RAD2DEG: U2 Q& X2 Z& ^
  if ![ info exists mom_tool_corner1_radius ] { set mom_tool_corner1_radius 0 }
4 w8 e* |+ i( s9 q5 O) P. t  ?( j  if { $mom_tool_type == "Drilling Tool" } {2 {) W( o4 d" T
  set tip_angle [ expr $mom_tool_point_angle * $RAD2DEG ]7 p/ Z0 R: F' H. @* X( a& R
    MOM_output_literal";(D=[format "%.2f" $mom_tool_diameter]Tip angle=[format "%.2f" $tip_angle]
$ N% D0 F' ~- O FL=[format "%.1f" $mom_tool_flute_length]L=[format "%.1f" $mom_tool_length])"
4 @$ z! u  Q8 u/ W' o- E# _4 a0 H7 G } else {8 U$ L- W* N1 e8 \& ]4 B
    MOM_output_literal";(D=[format "%.2f" $mom_tool_diameter]R=[format "%.2f"
, m7 f5 g0 k! k( A/ t  }$mom_tool_corner1_radius]FL=[format "%.1f" $mom_tool_flute_length]L=[format "%.1f"" [$ y0 N6 ^5 F) L
$mom_tool_length])"
' Y, m! H7 _0 l/ ~+ K* q4 F }, F" S% ]+ }6 B9 ?: D4 `8 H6 B

3 K$ }5 q6 U! \2 _) J7 u1 G- N4 Q9 Z; f8 V2 v( s7 k7 F) z1 l
加入如上刀具信息,出现错误,求高人解决。主要是想把铣刀和钻头区分开) u3 U9 x2 z& Q* C" u# N6 m2 o
发表于 2016-8-1 15:00:15 | 显示全部楼层 来自: 中国上海
刀具类型应该是Milling, Turning, Grooving, Drilling or Threading这里面的几种,不是你上面写的 "Drilling Tool"
发表于 2019-5-19 00:12:51 | 显示全部楼层 来自: 中国四川成都
本帖最后由 fengyunhun 于 2019-5-19 00:13 编辑
, j0 w: u0 K# I( i; s4 q
' S7 a) d" s  c. Q6 ~, Y如果是计算最短刀长失败,可以判断加工类型,遇到加工类型为钻孔,给最短刀长赋值为0+ R# W+ b8 J1 m- C7 X9 F
if {[string match "Point*" $mom_operation_type]} {set mom_tool_minimum_length 0}7 n- j1 _# K  {7 h( Y
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


Licensed Copyright © 2016-2020 http://www.3dportal.cn/ All Rights Reserved 京 ICP备13008828号

小黑屋|手机版|Archiver|三维网 ( 京ICP备2023026364号-1 )

快速回复 返回顶部 返回列表