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

strange behaviour with dwfimport
strange behaviour with dwfimport
hi,
i noticed a strange behaviour when importing a 3d dwf file into an oddbdatabase, using dd_dwf7import module. in autocad 2008, i just creates a tore on a yellow layer named 'torelayer' and i exports as a dwf.
as a result, i got the following model space (tried to represent a tree) :
model space
_include library_1
*u2
acdbpolyfacemesh
3
4
_include library_1
*u2
acdbpolyfacemesh
whereas the dwg model space looks like this :
model space
acdb3dsolid
as you can see, blockreference named _include library_1 is inserted 2 times in model space and nothing tells me that the first insertion is hidden or should not be constructed (or i missed something).
moreover, i think layers are lost with the import; the 'torelayer' is no more in the database (only the layer 0).
any thoughts on this ? am i doing something wrong ? are they some parameters i should put in the properties of oddwfimport ?
attached files
imported file shows 3d dwf structure, it is quite complex, and there is no round-trip info. (it's just not designed for it).
double insertion is a bug in dwf import - library block should be skipped.
(you may fix it yourself - in \imports\dwf7import\source\dwf7importimpl.cpp, 672 in line
code:
if (segname.left(17) != l"_include library_" || segname.left(15) != l"_style library_")|| condition is wrong, && should be used instead
code:
if (segname.left(17) != l"_include library_" && segname.left(15) != l"_style library_"))
layer info is lost in export. there is a convention in current version of autocad 3d dwf export, to group objects by layers, but these groups have no properties, and may be of various origin.
vladimir
thank you very much vladimir.
will this bug be fixed in the next maintenance release ?
of course it will.
vladimir
thanks vladimir
i have another question about this behaviour :
if i put the tore in a block named 'toreblock' and i put this block in the layer named 'torelayer', i got this tree in autodesk design review :
torelayer (1)
bloc - toreblock
but when i use dwf import, i got this tree :
3
4
_include library_1
*u2
acdbpolyfacemesh
why block names are lost ? is this during dwf import in database ? also, are names '3', '4', '*u2' in the dwf file itself ?
3d dwf is a set of nested segments. in import segments are converted to blocks, with the same names.
there is usually some metainformation in the file (put there by acad 3d dwf export), that gives legible names to segments.
currently we do not load this information from dwf. perhaps we should.
moreover - there are some naming conventions that current version of 3d export follow - that is - layers are exported as top level segments and preserve layer names, enities are nested segments. entities segments are given names of the entities types. block inserts are additionally given names of blocks.
this information may be interpreted to restore some of the original drawing structure, but i really doubt it to be worthwhile - these are just conventions - any other (quite valid) 3d dwf export may ignore them or invent its own.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】strange Behaviour When Copying Te yang686526 DirectDWG 0 2009-05-07 04:26 PM
【转帖】strange Behaviour For Acisout In Binary yang686526 DirectDWG 0 2009-05-07 04:25 PM
【转帖】odstring unicodemif behaviour on pc and mac yang686526 DirectDWG 0 2009-05-06 09:11 PM
【转帖】addcomponent4 - random behaviour yang686526 SolidWorks二次开发 0 2009-04-12 11:00 PM
【转帖】addcomponent4 - random behaviour yang686526 SolidWorks二次开发 0 2009-04-12 08:08 PM


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


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