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

yang686526 2009-05-06 08:00 PM

【转帖】oddbordinatedimension neglecting setorigin90
 
oddbordinatedimension neglecting setorigin()
oddbordinatedimension neglecting setorigin()
hi,
i am trying to use oddbordinatedimension::setorigin( ) function to set originpoint. but when i try to get the ::measurement() value for the dimension, it returns distance between (0, 0, 0) and definingpoint(ie. either x or y co-ordinate of definingpoint). i expected it to return distance between originpoint and definingpoint along x/y axis. any work around for this?
thx.

this bug is already fixed in 1.14.02 pre-release code.
1.14.02 is going to be released in nearest days.
the workaround is: (odordinatedimrecomputor.cpp)
code:
void odordinatedimrecomputor::getdimparams(const oddbdimension* pdim)
{
oddimrecomputor::getdimparams(pdim);
oddbordinatedimensionptr pdimptr(pdim);
m_defpoint1 = pdimptr->definingpoint();
m_defpoint2 = pdimptr->leaderendpoint();
m_bxord = pdimptr->isusingxaxis();
m_dimlinedefpt = pdimptr->origin();
}
void odordinatedimrecomputor::setdimparams(oddbdimension* pdim) const
{
oddimrecomputor::setdimparams(pdim);
oddbordinatedimensionptr pdimptr(pdim);
pdimptr->setdefiningpoint(m_defpoint1);
pdimptr->setleaderendpoint(m_defpoint2);
pdimptr->setorigin(m_dimlinedefpt);
if(m_bxord)
pdimptr->usexaxis();
else
pdimptr->useyaxis();
}
sincerely yours,
george udov


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