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

strange behaviour for acisout in binary
strange behaviour for acisout in binary
hi,
on the attached dwg (created with autocad 2008), i do an acisout binary call like this :
code:
acisout(psstreamout, kaftypebinary | kafverany);but in the generated stream, the transform entity is dumped in text mode.
i saw in the file acisbuilder\abtransform.cpp the following function :
code:
auxstreamout& transform::export( auxstreamout& stm ) const
{
...
if ( stm.isbinary() ) stm.entertextmode();
...
}is there any reason why we go in text mode if we are binary ?
i attached the sab file generated by the acisout call (remove the .txt extension). if you look at it you can see that the transform is in text in the middle of binary data.
attached files
some entities are stored as literal string intrusions in binary stream. perhaps it is the case.
why do you need binary sat at all? as i understand it was designed for internal use mostly.
vladimir
we have a parser that read acis binary format. but if we use the binary you produce, we get an error parsing transfos written in text mode.
what is the purpose of writing partial text information in binary?
as there is no test in your reading of transfos, you may be unable to reload the files you write...
quote:
we have a parser that read acis binary format.
what specification it is based upon? (and which sabs it reads correctly?)
quote:
what is the purpose of writing partial text information in binary?
otherwise acad would not read it.
quote:
as there is no test in your reading of transfos, you may be unable to reload the files you write...
?
vladimir
quote:
originally posted by wvk
what specification it is based upon? (and which sabs it reads correctly?)
our parser is based on the acis specification and has some specific code to read asm data.
quote:
otherwise acad would not read it.
what do you mean? acad is able to read the files it produce...
as far as i know, when you read the stream from dwg, transformation come as binary... so if acad write them in binary, it should be able to read them as binary too.
or am i wrong?
quote:
as far as i know, when you read the stream from dwg, transformation come as binary... so if acad write them in binary, it should be able to read them as binary too.
or am i wrong?
probably you are wrong.
this statement (entertextmode) was introduced in the early stages of the acisbuilder development (in 2004) and since then it has been extensively used, so, i doubt that there is a bug in this function.
this can be tested of course, and you may do the test yourself, as you have the sources. just comment the statement, rebuild dd, create a sat with transform, import it in odamfcapp, save as dwg r18, and open in acad 2004.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】proxy binary data yang686526 DirectDWG 0 2009-05-07 12:04 AM
【转帖】odstring unicodemif behaviour on pc and mac yang686526 DirectDWG 0 2009-05-06 09:11 PM
【转帖】how can i read the binary chunc 93100 of a proxy entity yang686526 DirectDWG 0 2009-05-05 12:19 PM
【转帖】dwf export problem - compressed binary 6.0 yang686526 DirectDWG 0 2009-05-04 08:19 PM
【转帖】binary data custom objects yang686526 DirectDWG 0 2009-05-04 04:42 PM


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


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