iCAx开思工具箱
标题:
读取*.cls包含的信息
[打印本页]
作者:
liyuzhou03
时间:
2009-5-29 09:11
标题:
读取*.cls包含的信息
用程序读取*.cls里的xyz,ijk信息
文件前11行不读
*.cls文件截取:
TOOL PATH/FIXED_CONTOUR,TOOL,MILL
TLDATA/MILL,12.000000,6.000000,125.000000,0.000000,0.0000
MSYS/0.0000000, 0.0000000, 0.0000000, 1.0000000, 0.0000000,0.0000000, 0.0000000, 1.0000000, 0.0000000
$$ centerline data
PAINT/PATH
PAINT/SPEED,10
COOLNT/ON
SPINDL/RPM,3600.000000,CLW
PAINT/COLOR,186
RAPID
GOTO/-29.303825,16.041451,3.480217,-0.855767,0.003900,0.517347
GOTO/-13.900027,15.971242,-5.832036,-0.855767,0.003900,0.517347
FEDRAT/MMPM,2000.000000
GOTO/-3.630828,15.924437,-12.040205,-0.855767,0.003900,0.517347
FEDRAT/MMPM,2000.000000
GOTO/-2.663468,15.961441,-7.134815,-0.855767,0.003900,0.517347
作者:
zhangcanwei
时间:
2009-5-29 13:14
cls文件头部行数不是固定的,不一定就是11行。还是好好把文件结构搞懂。
作者:
zhangcanwei
时间:
2009-5-29 18:24
遇见有GOTO的行就进行处理,否则,就空放一个读行的语句,这个难道很难吗?
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3