|
好久没有发帖了!!!今趁着有空,发两个大家感兴趣的宏!它们分别可以实现刀具路径,刀路,边界等等的扩展和收缩,当然包括这些根节点下的文件夹!!!大家看一下效果演示:
回复可以直接看到宏的源代码
1)收缩
//适用PM版本:2016
//星月 修订
INCLUDE 'C:\dcam\config\MyFunction.inc'
FUNCTION MAIN() {
GRAPHICS LOCK
ECHO OFF DCPDEBUG UNTRACE COMMAND ACCEPT
TOOLBAR COMMANDBAR LOWER
MACRO STOP
STRING ARRAY EntType[]={'Machinetool','NCProgram','Toolpath','Tool','Boundary','pattern','Featureset','Workplane','Level','Model','StockModel','Group'}
FOREACH str IN EntType {
CALL LeftAndFolder(str)
}
CALL LEFT('MACRO')
GRAPHICS UNLOCK
}
2)扩展
//适用PM版本:2016
//2017-10-18 星月 修订
INCLUDE 'C:\dcam\config\MyFunction.inc'
FUNCTION MAIN() {
GRAPHICS LOCK
ECHO OFF DCPDEBUG UNTRACE COMMAND ACCEPT
TOOLBAR COMMANDBAR LOWER
MACRO STOP
STRING ARRAY EntType[]={'Machinetool','NCProgram','Toolpath','Tool','Boundary','pattern','Featureset','Workplane','Level','Model','StockModel','Group'}
FOREACH str IN EntType {
CALL RightAndFolder(str)
}
GRAPHICS UNLOCK
}
|
-
收缩扩展演示
评分
-
查看全部评分
|