几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ext Covered By The Solid Hatch (http://www.dimcax.com/hust/showthread.php?t=18719)

yang686526 2009-05-07 04:42 PM

【转帖】ext Covered By The Solid Hatch
 
text covered by the "solid" hatch
text covered by the "solid" hatch
hi!
now i can read and display the file "demo0.dwg".but i find that the text is covered by hatch,and i open the file with autocad,the text can be displayed.
i find that the hatch has a "oddbdictionary" in it,and how can i get the information in "oddbdictionary".
can you give me some demo code?
thank a lot.
attached files
quote:
originally posted by zhang
hi!
now i can read and display the file "demo0.dwg".but i find that the text is covered by hatch,and i open the file with autocad,the text can be displayed.
"acdbsortentstable is the persistent container for draw order information. it resides in the extension dictionary of an associated acdbblocktablerecord under the key acad_sortents."
quote:
originally posted by zhang
i find that the hatch has a "oddbdictionary" in it,and how can i get the information in "oddbdictionary".
can you give me some demo code?
oddbobjectid dictid = entityptr->extensiondictionary();
if ( !dictid.isnull() )
{
oddbdictionaryptr dict = dictid.safeopenobject();
if ( !dict.isnull() )
{
...
}
}
best regards,
sergey z.
oddbobjectid dictid = entityptr->extensiondictionary();
if ( !dictid.isnull() )
{
oddbdictionaryptr dict = dictid.safeopenobject();
if ( !dict.isnull() )
{
...//what should i do here?help me...fff">}
}
oddbblocktablerecord::newiterator() has "sorted" parameter.
if it's "true" than you'll get entities sorted according to sortents table.
sergey slezkin


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