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

yang686526 2009-05-07 04:49 PM

【转帖】ext Size Mapping With Vectorization
 
text size mapping with vectorization
text size mapping with vectorization
hi,
we're using the dd libs to import from and export to dwg/dxf formats. the problem we face is the mapping of text size attributes between our document model and autocad.
during export (to dxf) we set the following properties:
oddbtextstyletablerecordptr pstyle = oddbtextstyletablerecord::createobject();
...
pstyle->settextsize(a);
pstyle->setxscale(b);
...
oddbtextptr ptext = oddbtext::createobject();
...
ptext->setheight(c);
ptext->setwidthfactor(d);
...
while importing using vectorization, how can we recover a, b, c, d from the arguments passed to our textproc()?
using the arguments passed to our textproc()
ptext->setheight(v.length());
ptext->setwidthfactor(u.length()/v.length());
there are property current text in textstyle in textproc() arguments.
best regards,
sergey z.


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