高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】setting Dimtfac For A Dimension Not Working
setting dimtfac for a dimension not working
setting dimtfac for a dimension not working
hi to all,
dwgdirect 2.2.0 seems to have a bug with the dimtfac property for rotated dimensions - it's not set properly. it's always set to 1.0, although a smaller value is passed to the setdimtfac() method.
the attached sample file is saved by acad2006. try to open it with odamfcapp example and run the following code:
code:
odgepoint3d pt1start(5.5,0,0);
oddbblocktablerecordptr pblock = m_pdb->getactivelayoutbtrid().safeopenobject(oddb::kforwrite);
int i = 0;
for (oddbobjectiteratorptr piter = pblock->newiterator(); !piter->done(); piter->step(), i++ )
{
oddbrotateddimensionptr pdim = piter->entity()->objectid().safeopenobject(oddb::kforwrite);
pdim->setxline1point(pt1start);
pdim->setdimtfac(0.2);
}
changing the dimension start point is added to assure that the very dimension is updated.
is there a workaround for this problem?
regards,
nino
attached files
hi nino,
you can set dimtfac for dimension properly but there is bug in dwddirect recompute dimension block (text is not right). we will fix it in next release. thank you for report.
best regards,
sergey z.
thanks for the immediate reply.
|