几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】visibility Of Entities (http://www.dimcax.com/hust/showthread.php?t=19036)

yang686526 2009-05-07 06:35 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 10:26 PM.