几何尺寸与公差论坛------致力于产品几何量公差标准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, 10:59 AM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 【转帖】CAD transform programmability

Dear Everyone!
I'm trying to write some sort of an automation that can determine the translation compensation of EDM electrodes. The compensation is the difference between the CAD model position and the actual machined electrode position (we are using EROWA fixtures for high precision repeatable positioning).
For this task I need to use the CAD transform window to reposition the electrode by some 0.1 mm-s after each measurement, but it's highly time consuming. Is there some way to:
1. call CAD transform actions via VBA or any other means?
2. translate measured features by a certain vector all at once?
Thanks for your help.
David Bendes
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
旧 2007-11-26, 11:01 AM   #2
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 【转帖】CAD transform programmability

bitsandmore
Hi David,
there's nothing in the PCDMIS-object-library for "Transform CAD",
but i'm actually working on a solution to fill the "Translate" and "Rotate Matrix"
fields through a tool called AutoIt.
Find attached what I've done so far.

HTH

PCD_TransformWindow_Test.zip
Bill McCafferty

If I understand correctly, you're trying to compensate for the OVER BURN? If this is the case, simply use the THICKNESS setting in the AUTOFEATURES Dialog. -.1 will compensate for .1 of over burn and it will stay set at -.1 until you change it again. This way after you've aligned to the holder; I used to use the same holders, you can simply pick vector points off of the CAD and keep going.

Bill


David Bendes

Hi David,
there's nothing in the PCDMIS-object-library for "Transform CAD",
but i'm actually working on a solution to fill the "Translate" and "Rotate Matrix"
fields through a tool called AutoIt.
Find attached what I've done so far.

HTH

Attachment 2060


Hi,
I would worship you for that tool if that worked!
I instantly dled it, trying to put it into action, but when I looked at the code I started wondering what language was it written in? Could you pls help me on that? I wasn't even familiar with the file extension.
My automation would run from Excel, therefore I need to embed that code in some sort of VBA application.
I would be really grateful for your support,
many thanks
Dv
David Bendes
If I understand correctly, you're trying to compensate for the OVER BURN? If this is the case, simply use the THICKNESS setting in the AUTOFEATURES Dialog. -.1 will compensate for .1 of over burn and it will stay set at -.1 until you change it again. This way after you've aligned to the holder; I used to use the same holders, you can simply pick vector points off of the CAD and keep going.

Bill


Hi,
your guess is almost correct, but what I'm trying to do apart from compensating for overburn is to compensate the translation-type errors due to machining. That is e. g. the electrode is modeled to the centerline of the holder but when I receive the actually manufactured version, it is usually screwed up by a few tenths of millimeters to whatever direction. Therefore I need to find out the linear compensation to minimize that error.
Anyway, your help is highly appreciated, since I never knew what for the thickness setting was, so now I can get to using it right away!
thanks
Dv

Bill McCafferty
This is right in the AUTOFEATURES dialog within PCDmis itself (Vector Point Advanced in the MISC area.). I've not done anything with automation, so this may not work for you, but somewhere there has to be PCDmis code that does the checks, it's within PCDmis itself. It does work exactly the way I discribed as well. I've used it in the past to check trodes and compensate for over burn.

Bill
Bill McCafferty
bitsandmore
Hi,
the scripting-language is called AutoIt (freeware), you can find it here:
http://www.autoitscript.com/
Sorry, no way with vb/vba here, because the Transform-function
is not in the PCDMIS-object-library.
Big advantage of that tool here:
you can automate the process of transferring the values
to the proper input boxes in the Transform-dialog.
The previously attached .au3-file contains the code, it can with
AutoIt also be compiled to an exe-file.

HTH
Bill McCafferty
One last thought.. IF/WHEN ou use the THICKNESS feature, you have to MANUALLY turn it off or it WILL stay turned on, even if you close that program and start another. It even modifies features that it shouldn't. For instance if you used it for a trode check and then start a gage check and want to pick up tooling balls (sphere), it will STILL be turned on and the only place you can see it is in the Parameters of the feature in the edit window. You won't see it in the sphere autofeatures because it isn't an option there, but it WILL mess it up so be careful with this feature.

Bill

Thanks to both of you for your help, it was really appreciated.

According to AutoIt, can I pass data from excel to AutoIt, or can I call AutoIt object from within excel?

此帖于 2007-11-26 11:05 AM 被 huangyhg 编辑.
huangyhg离线中   回复时引用此帖
旧 2007-11-26, 11:06 AM   #3
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: 【转帖】CAD transform programmability

Hi,
no, data-passing the direct way would not work (as far as i now),
but here's what can be accomplished:
1. i assume you have your "values" in the excel-sheet
-> export/write that values with Excel-VBA to an external Textfile
2. call with Excel-VBA your generated AutoIt-exefile (with the Shell-command in vba)
3. the AutoIt-file then can gather the values from the textfile and send it
to the transform-window

Hope i was able to shed some light.
Bye
bitsandmore
huangyhg离线中   回复时引用此帖
回复


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

高级搜索
显示模式

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

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



所有的时间均为北京时间。 现在的时间是 04:23 AM.


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