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

reading xref information
reading xref information
hi,
if we cannot currently bind() the xref, any work around to fully read the xref with r1.1201
the problem is as follows:
in release 1.1101 when an xref is resolved and loaded the xref's in-depth-blocks where appended as records into the oddbblocktable, but in release 1.1201 they do not show up in the blocktable and so we cannot get their information. but when we scan the resolved and loaded xref block itself, it contains oddbblockreference entities referencing to these missing blocks records.
same problem with the in-depth-textstyles from an xref, they are not appended to the tables as it was working in the previous release.
any idea for a work around (long or short) so we can read the xref in-depth-blocks, or textstyles.
thank you,
salleh diab
hi,
oddbblocktablerecord contains xrefdatabase() method to provide access to entries from external database.
regards,
sergey vishnevetsky
xref problem with r1.1201
dear sergey,
is taht mean we have now to handle the xref as a new database of its own and get its information on a separate loop?
is that also means that the oddbxrefman has now an undocumented re-design and it is gone forever?
do you have an example that was used in testing the new xrefdatabase()?
will xrefdatabase() has been tested and will it returns a valid pointer or it is also buggy?
this is realy a surprise for us in r1.1201 after oddbxrefman was working fine in r1.1101? and after we designed our software to work using oddbxrefman even without the buggy bind().
thank you in advance.
salleh diab
hi,
quote:
is taht mean we have now to handle the xref as a new database of its own and get its information on a separate loop?
since 1.12 version ddt places xref in a separate database which can be accessed through oddbblocktablerecord::xrefdatabase() method. also layers and related symbol records are redirected to a host database.
quote:
is that also means that the oddbxrefman has now an undocumented re-design and it is gone forever?
please note that "1.12 release notes" has mention about oddbxrefman redesigning.
quote:
do you have an example that was used in testing the new xrefdatabase()?
will xrefdatabase() has been tested and will it returns a valid pointer or it is also buggy?
you can add the next code in dbdumper::dumpblocks() method (examples\odreadex\dbdumper.cpp file) to dump content of xref database:
code:
if (pblock->isfromexternalreference())
{
oddbxrefman::reload(pblock, true, false);
oddbdatabase* pxrefdb = pblock->xrefdatabase();
if (pxrefdb)
{
os << ">>> database is from xref (start) <<<" <<std(endl);
os << "file version: " << pxrefdb->originalfileversion() << std(endl);
dbdumper dumperxref;
dumperxref.dump(pxrefdb, pxrefdb->appservices(), os);
os << ">>> database is from xref (end) <<<" << std(endl);
}
}
quote:
this is realy a surprise for us in r1.1201 after oddbxrefman was working fine in r1.1101? and after we designed our software to work using oddbxrefman even without the buggy bind().
i'm sorry to hear that we've made problems for you, but previous ddt versions had only temporary implementation of xref loading (simple inserting). it caused many problems and we had to redesign it.
regards,
sergey vishnevetsky
thank you.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】mutliple calls to findfile90 when xref not found yang686526 DirectDWG 0 2009-05-06 06:16 PM
【转帖】loading an xref into the current drawing yang686526 DirectDWG 0 2009-05-06 05:14 PM
【转帖】geometry related questions yang686526 DirectDWG 0 2009-05-05 11:12 AM
【转帖】empty xref blocks yang686526 DirectDWG 0 2009-05-05 09:02 AM
【转帖】current vp freeze of xref layer that is frozen is being vec yang686526 DirectDWG 0 2009-05-04 06:54 PM


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


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