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

yang686526 2009-05-07 03:45 PM

【转帖】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.


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