|
可使用RunMacro2函数执行外部宏,如下参考- Option Explicit
9 ]* G1 m q( d- x* o - Dim swApp As SldWorks.SldWorks
+ k6 T; w9 B3 J - Dim runMacroError As Long' P9 G9 m8 ?6 e
- 7 {: {) g: W5 w
- Sub main()
( F- o5 m6 E7 Q f; R7 h - Set swApp = Application.SldWorks
8 i5 N% m; s4 C' u0 h1 o - swApp.RunMacro2 "C:\Users\Administrator\Desktop\Macros\删除所有配置属性.swp", "配置1", "main", 0, runMacroError
e% o2 w9 @- L7 a/ A - swApp.RunMacro2 "C:\Users\Administrator\Desktop\Macros\删除自定义属性.swp", "配置1", "main", 0, runMacroError
( R/ I* b6 e: F0 H" e - swApp.RunMacro2 "C:\Users\Administrator\Desktop\Macros\partitionTM.swp", "partitionTM1", "main", 0, runMacroError9 U2 c9 [7 P5 N& O! ~
- End Sub2 `8 e" A1 C; X) H
复制代码
, v7 o* k; s3 d% p |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
评分
-
查看全部评分
|