几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CMM二次开发 » PC-DMIS二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2007-11-26, 12:17 PM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 Dimension Out of Tolerance command?

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
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
旧 2007-11-26, 12:17 PM   #2
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 12:18 PM   #3
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 12:19 PM   #4
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 12:20 PM   #5
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 12:22 PM   #6
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 12:27 PM   #7
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
using profile of a surface tolerance on size controls the form better huangyhg tec-ease(America) 2 2007-10-28 04:55 PM
What is the range of tolerance value for Modeler::SetToleranceValue? directdwg SolidWorks二次开发 0 2006-12-19 12:59 PM
【原创】我自己编写的一段程序大家看看 hanweisheng 标准件库 0 2006-05-08 09:27 PM


所有的时间均为北京时间。 现在的时间是 11:58 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多