|
发表于 2024-6-18 11:38:00
|
显示全部楼层
碰撞检查不需要去筛选刀具吧,不然刀库分文件夹的话咋办?你试试:
UNDRAW TOOLPATH ALL
String List TpNames ={}
FOREACH tp IN FOLDER ('Toolpath') {
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
ACTIVATE TOOLPATH $tp
FORM COLLISION
EDIT COLLISION TYPE COLLISION
EDIT COLLISION STOCKMODEL_CHECK N
EDIT COLLISION SCOPE ALL
EDIT COLLISION SPLIT_TOOLPATH N
EDIT PAR 'Verification.UseVerificationThickness' 0
EDIT COLLISION USE_TOOL " "
EDIT COLLISION ADJUST_TOOL N
EDIT COLLISION DEPTH Y
EDIT COLLISION SHANK_CLEARANCE 0.5
EDIT COLLISION HOLDER_CLEARANCE 0.5
UNDRAW COLLISION
DRAW COLLISION
EDIT COLLISION APPLY
EDIT COLLISION TYPE GOUGE
EDIT COLLISION APPLY
COLLISION ACCEPT
DIALOGS MESSAGE ON
DIALOGS ERROR ON
EDIT TPATTRIBUTE ; TOOL_TIP ON
}
也可以拆解成单条碰撞如下:
//DIALOGS MESSAGE OFF
//DIALOGS ERROR OFF
FORM COLLISION
EDIT COLLISION TYPE COLLISION
EDIT COLLISION STOCKMODEL_CHECK N
EDIT COLLISION SCOPE ALL
EDIT COLLISION SPLIT_TOOLPATH N
EDIT PAR 'Verification.UseVerificationThickness' 0
EDIT COLLISION USE_TOOL " "
EDIT COLLISION ADJUST_TOOL N
EDIT COLLISION DEPTH Y
EDIT COLLISION SHANK_CLEARANCE 0.2
EDIT COLLISION HOLDER_CLEARANCE 0.2
UNDRAW COLLISION
DRAW COLLISION
EDIT COLLISION APPLY
EDIT COLLISION TYPE GOUGE
EDIT COLLISION APPLY
COLLISION ACCEPT
DIALOGS MESSAGE ON
DIALOGS ERROR ON
EDIT TPATTRIBUTE ; TOOL_TIP ON |
|