若枫 发表于 2021-2-18 22:14:18

Mastercam后处理加工时间dll

Mastercam后处理加工时间dll

Mastercam后处理加工时间dll。此dll仅输出加工时间,而且是总时间,未对单个操作进行处理。”


使用该方法非常简单,将下面的代码添加到后处理中。​



#-----------------------------------------------------------------------------
# Do not change below any code.
#-----------------------------------------------------------------------------
sDLL : "Cutting_Time.dll"
sSPACE : " " # Contains a SPACE character
sSQ : "'"    # Contains a Single Quote character
sDQ : '"'    # Contains a Double Quote character
sARG1 : "" # Load with the arg#1
sARG2 : "" # Load with the arg#2
sARG3 : "ss1268@163.com" # Load with the arg#3
sPARAMS : "" # This string variable will be the command line passed to the DLL.
resultDLL : 0 # Needed for the dll() command call.
result : 1
serror_lic    : "Sorry, you not license use this postprocessor"
serror_dll    : "Sorry, in"
serror_fd   : "folder is not dll file"
serror_id   : "Invalid user name, "
serror_nu   : "Time limit has expired! "
svers_limit_msg: "This post is designed to function with Mastercam X only!"

prunaddin#This postblock is used to run a NET-Hook (or C-Hook) Add-In.
sPARAMS = sSQ + sDQ + sARG1 + sDQ + sSPACE + sDQ + sARG2 + sDQ + sSPACE + sDQ + sARG3 + sDQ + sSQ
sDLL = spathpst$ + sDLL
if fexist(sDLL),
   resultDLL = dll(sDLL, sPARAMS)
   else,
   [
   serror_dll = serror_dll + spathpst$ + serror_fd
   result = mprint(serror_dll)
   exitpost$
   ]
   *spost_arg_0$, e$
   *spost_arg_1$, e$
   *spost_arg_2$, e$

在需要输出时间的地方添加如下代码即可输出时间​
prunaddin
测试版本:Mastercam 2021
可运行版本:理论上2017-2021均可,X9理论上也是可以运行的,实际未测





**** Hidden Message *****

DADA7478 发表于 2021-2-19 00:30:22

感謝分享.......

feng1990 发表于 2021-2-23 16:49:52

谢谢打捞分享学习了

sunboy 发表于 2021-2-24 16:43:47

老大厉害了:victory:

xxpsws 发表于 2021-2-25 08:55:40

新技术,继续学习

poi8848328 发表于 2021-3-2 00:08:40

看看隐藏,学习下

cadme 发表于 2021-3-3 22:53:55

感谢坛主提供。

SHILEI800810 发表于 2021-3-12 11:14:19

感谢坛主提供

YANQH80 发表于 2021-3-28 13:56:08

感谢分享先收藏了

csak747 发表于 2021-4-11 15:14:30

感谢分享:):)
页: [1] 2 3 4 5 6
查看完整版本: Mastercam后处理加工时间dll