QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

查看: 3961|回复: 2
收起左侧

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

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

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

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

x
global mom_tool_name mom_tool_type9 l' w( B- P0 d% l" R. o' D  R& E
global mom_tool_diameter mom_tool_corner1_radius mom_tool_flute_length; }6 U- r2 y5 d6 a
global mom_tool_length tip_angle mom_tool_point_angle RAD2DEG
2 Y2 l5 @+ l' Y, E: d* V2 }  if ![ info exists mom_tool_corner1_radius ] { set mom_tool_corner1_radius 0 }
  `! q8 k) D8 ^; w  if { $mom_tool_type == "Drilling Tool" } {
) r, s& [2 |0 O6 i  [  set tip_angle [ expr $mom_tool_point_angle * $RAD2DEG ]' s& v0 d, g% V; s% y3 o: w
    MOM_output_literal";(D=[format "%.2f" $mom_tool_diameter]Tip angle=[format "%.2f" $tip_angle]) E: X* r9 m: f+ A! m
FL=[format "%.1f" $mom_tool_flute_length]L=[format "%.1f" $mom_tool_length])"9 O" G# |# [( r
} else {
& C* Q; F0 i6 h    MOM_output_literal";(D=[format "%.2f" $mom_tool_diameter]R=[format "%.2f"
% W2 m2 q; F2 ?2 K$mom_tool_corner1_radius]FL=[format "%.1f" $mom_tool_flute_length]L=[format "%.1f"
+ n3 d9 _! j4 v  l) H# N0 k$mom_tool_length])"
5 S9 J9 C6 l- k: X' H }0 X3 @7 u6 d* q) K- p4 W

1 P% j5 _: n, ^  F1 W0 B. D0 |( ~& F' s. i
加入如上刀具信息,出现错误,求高人解决。主要是想把铣刀和钻头区分开
# N% h: U, p7 @4 S: _$ l( ?
发表于 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 编辑
7 j, x) ~$ E+ p: ], s; y& R$ K) O$ x  q- ~1 A7 V
如果是计算最短刀长失败,可以判断加工类型,遇到加工类型为钻孔,给最短刀长赋值为0. ?% ^& q! k0 ~1 F  J+ c. g7 y
if {[string match "Point*" $mom_operation_type]} {set mom_tool_minimum_length 0}; A' p  S8 W2 b$ ^( z; A
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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