|
楼主 |
发表于 2019-4-29 16:09:27
|
显示全部楼层
global mom_tool_diameter
global mom_tool_flute_length
global mom_tool_corner1_radius mom_tool_lower_corner_radius
global mom_tool_type
global mom_tool_name
if {$mom_tool_type == "Milling Tool-T Cutter"} {
MOM_output_literal "( Name=$mom_tool_name Tool:DIA=[format "%.2f" $mom_tool_diameter] CR=[format "%.2f" $mom_tool_lower_corner_radius] FL=[format "%.2f" $mom_tool_flute_length] )"
} else {
MOM_output_literal "( Name=$mom_tool_name Tool:DIA=[format "%.2f" $mom_tool_diameter] CR=[format "%.2f" $mom_tool_corner1_radius] FL=[format "%.2f" $mom_tool_flute_length] )"
}
这个是后处理T型刀得代码 |
|