查看单个帖子
旧 2009-05-07, 06:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】visibility Of Entities

visibility of entities ?
visibility of entities ?
hi everybody,
in the attached zip file, you will find:
-hmi2.dwg
-hmi2.jpg : showing this dwg displayed in autocad and in my program based upon dwgdirect.
as you can see, i display some entities that are invisible for autocad.
since all layers are visible in autocad and since i test oddbentity::visiblility, i wonder why ?
thank you in advance for your help.
regards.
attached files
the block you mentioned (a$c290d74e9) is really inserted into model space. but its extents are inside extents of other visible entities. probably you have some errors with processing block reference parameters.
btw, odamfcapp diaplays the drawing as autocad does.
sergey slezkin

are you telling me that, before displaying a block, i should check if its extent is not inside the extent of the other entites ?
this test should be done only on blocks ?
it seems a bit odd to me.
no. i mean that the block you have problems with should be visible but probably your application displays it incorrectly (with wrong scale/position).
it seems that all drawing on your picture is displayed as a small spot and the block reference is huge. in autocad and odamfcapp it is displayed among other geometry (between other entities).
sorry for my english.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)