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

yang686526 2009-05-07 04:52 PM

【转帖】extstyle Vectorization
 
textstyle vectorization
textstyle vectorization
hi,
i am using the following code to vectorize entities (text, circles, arcs, hatches, etc.):
oddbhandle objhandle(ahandle);
oddbobjectid id = pdb->getoddbobjectid(objhandle);
oddbentityptr pent = id.safeopenobject();
odstaticrxobject<myrenderer> dv;
odstaticrxobject<odgicontextfordbdatabase> gicontext;
gicontext.setdatabase(pent->database());
dv.setdrawcontext(&dv);
dv.setcontext(&gicontext);
dv.output().setdestgeometry(dv);
dv.draw(pent);
but when i vectorize text it doesn't use the correct textstyle. do i need to specify the text style before vectorization?
never mind. the problem is related to shx font paths.


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