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


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


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 02:45 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】sat looks like the symmetrical of .dwg

.sat looks like the symmetrical of .dwg
.sat looks like the symmetrical of .dwg
hello support,
you will find attached a dwg file, a sat file extracted from the dwg with this piece of code:
odgetsatfromproxy(dwgproxy,pmodelergeometry) ;
pmodelergeometry->out(filebuf,kaf_ascii_700) ; //(returns eok)
and a jpeg showing that the object in sat file is the symmetrical of the object in the dwg file.
could you give me the reason why please ?
thank you in advance.
attached files
hello,
getsatfromproxy just returns stored sat without any modifications. it knows nothing about adpart object and environment. may be drawing has some transforms on upper level, but it isn't getsatfromproxy responsibility to apply it.

hello alexander,
thank you for your answer.
i wonder where the symmetry transformation is written :
-the odmodelergeometry::gettransformation returns false and no transformation.
-the proxy is in a block. the oddbblockreference::blocktransform returns the identity matrix.
could you help me please ?
i think that problem is not in oddb transformation. do you known adpart object parent application ? it is possible that transformation is stored like part of adpart or something else...

the file seems to have been generated by mechanical desktop 2006, but i am not sure.
is there a way to find the transformation in the file ?
thank you.

really no answer to my question ?
hello,
i have checked your file one more time. file contains entities that are unknown for us. i have test all available points for me - stored sat stream, block reference transform. sat stream doesn't include any transform, block ref has identity transform - it doesn't mirror object. i didn't find any transformation here... i think that problem came from some logical architecture organization of mechanical desktop entities. for example, some complex entity group has some mirror property\flag\transform (or something else - another entity may be). it is available for mechanical desktop users via user interface or object properties, but not available for dwgdirect. entity includes internal sat cache for pure state and proxy graphic cache for products like autocad (autocad don't know mechanical desktop organization), but must render proxy entity object. so internal sat cache will be stored without any external transformation, but proxy graphic cache should include transformed graphics. here is our problem - you ask for non transformed internal sat cache and cannot apply external transform.
i am not specialist in the mechanical desktop, so i cannot answer to you more precisely. may be you can ask somebody about ?
over the years, i have also received several dwg files from our customers with this same problem and cannot figure out what is going on. i eventually came to the same conclusion - that there's something in mdt that's mirroring the body(s), and that information doesn't get into the sat data or the dwg transformations.
it appears to be a rare happening, but i'm attaching one of them in case the alliance gets a chance to look into it.
attached files (428.6 kb, 0 views)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】symmetrical tolerancing yang686526 American standards 0 2009-05-04 10:36 AM
【转帖】positional tolerancing of symmetrical features yang686526 American standards 0 2009-04-29 09:23 PM


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


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