几何尺寸与公差论坛------致力于产品几何量公差标准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, 03:37 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】acis data garbled

acis data garbled
acis data garbled
hi,
we use odcopyex in dwgdirect to translate autocad 2004 files into 2000 so we can continue using the opendwg toolkit until we have time to upgrade.
the bug we are seeing is after using odcopyex in dwgdirect 1.10 to save the 2004 file to 2000 (files attached), the acis data is garbled when read by opendwg toolkit 2.012.
please help.
chung
acis data in ac2004 dwg files is stored in sab (binary) format. in dxf and in minor dwg version - in sat (text) format. and acis versions are different.
to perform the conversion additional module is required. it was made optional to allow minimizing application size or replacing it with another implementation.
to enable dd acis support call odrxinitmodelergeometry() after odinitialize() and odrxuninitmodelergeometry before oduninitialize(). see odamfcapp sample.
but file attached contains unknown to dd entity acamcompentclone which is loaded as proxy entity. dd is unable to convert data of proxy entity.
sergey slezkin
hi sergey,
thank you for the quick reply. we are already calling odrxinitmodelergeometry and i don't think it is a problem of unsupported proxy entity. the proxy entity in question is adpart which is supported and odreadex is able to extract the acis data from both the 2004 and 2000 files. is it possible that when odcopyex translated the 2004 file to 2000, it left the acis data in a 2004 format? maybe still with 2004 encryption? i think that could explain why odreadex works and opendwg doesn't.
again, thanks for looking into this.
chung
attached file contains acamcompentclone entity which is is treated by dd as proxy entity. when proxy entity is saved to file it's binary data is marked by version when the entity became proxy - objectdrawingformat in odt.
in your case when acamcompentclone is saved by dd to r15 its binary data is unchanged and marked as r18 format data.
autocad's behavior is the same if application supporting the entity (arx) is not loaded because it's impossible to convert data of unknown format.
probably the odt function extracting acis from mechanical entities does not check data version and extracts sab not sat data.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】accessing autocad map object data yang686526 DirectDWG 0 2009-05-04 03:32 PM
【转帖】哪位高手指点一下下边lisp的怎么用 yang686526 数据库ObjectDBX 0 2009-04-28 12:13 PM
哪位高手指点一下下边lisp的怎么用 yang686526 ObjectARX(AutoLISP) 0 2009-04-26 06:19 PM
【转帖】请教dbgrid与data grid有什么不同-->leeyeafu转移 yang686526 数据库ObjectDBX 0 2009-04-19 08:02 PM
【转帖】data storage in sw docs yang686526 SolidWorks二次开发 0 2009-04-13 10:11 AM


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


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