Mastercam后处理加工时间dll
Mastercam后处理加工时间dllMastercam后处理加工时间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 *****
感謝分享....... 谢谢打捞分享学习了 老大厉害了:victory: 新技术,继续学习 看看隐藏,学习下 感谢坛主提供。 感谢坛主提供 感谢分享先收藏了 感谢分享:):)