查看单个帖子
旧 2009-05-07, 04:49 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)