几何尺寸与公差论坛

 找回密码
 注册
查看: 3701|回复: 6

Dimension Out of Tolerance command?

[复制链接]
发表于 2007-11-26 12:17:17 | 显示全部楼层 |阅读模式
I think I did this in intermediate class, but that was 4 years ago: I want to be able to output various other commands when a dimension is out of tolerance. Can anyone give me any ideas on how?
rebeldude
 楼主| 发表于 2007-11-26 12:17:44 | 显示全部楼层

回复: Dimension Out of Tolerance command?

If then statement based on the out of tolerance of the feature.

If/DIM1.X.OUTTOL>0
.
.
your commands...
.
.
end/if
cmmguy
 楼主| 发表于 2007-11-26 12:18:29 | 显示全部楼层

回复: Dimension Out of Tolerance command?

I am not sure how. I imaging that you could write a script for that. Craig, Don, or Mr. Comment are among the few that should be able to answer that.
cmmguy
 楼主| 发表于 2007-11-26 12:19:24 | 显示全部楼层

回复: Dimension Out of Tolerance command?

Yes it can be scripted. Some questions would be what do you want for an output? Do you need an output for each out of tolerance condition or just one output at the end of execution?

You could probably bastardize one of the existing code samples. I think there is one out there that counts up the total out of tolerance.

I have had issues lately where I can't run scripts any more on a machine where I do most of my debugging but I recently uninstalled and reinstalled (over other issues) so I might be able to run there now, not sure.

Could you describe your "output" requirements?
craiger_ny
 楼主| 发表于 2007-11-26 12:20:18 | 显示全部楼层

回复: Dimension Out of Tolerance command?

I have 2 different outputs I want to use:
(1) A stop in the program after the Out of tolerance dimension
(2) A wav file stating "There is a out of tolerance issue with Dimension__"
rebeldude
 楼主| 发表于 2007-11-26 12:22:30 | 显示全部楼层

回复: Dimension Out of Tolerance command?

Do you want to stop after each out of tolerance dimension like a message box or just stop the program all together? As far as the wave file goes you'd need to automate a voice emulator to say each dimension specifically.

I think it would be tough and involved, do you have blind people running your CMM?

Some of this can be done I think without too much trouble depending on exactly what you want. A bas would likely loop through each dimension to find out of tolerance ones. I am not sure how to code it so it only looks for the most recently measured one while ignoring the rest without hard coding it. Then you'd have to write a bas for each individual part program that would have to be edited with each part program as well. It might be best to code it with PCDMIS. Like J said an IF/End IF evaluation after each dimension. If you had a voice emulator then you could pass a string to a bas that automated it perhaps. If it is going to be dimension specific then I say do it with PCDMIS.
craiger_ny
 楼主| 发表于 2007-11-26 12:27:03 | 显示全部楼层

回复: Dimension Out of Tolerance command?

Does anyone have a better example they could post including some more of the code involved.. ? what about an end/if statement to use with reducing the angle range taken on a radius? sometimes my range needs to be -10 on each start and end angle to come in..
Aaron
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 00:11 , Processed in 0.041252 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表