几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】system Variables For Dimension Style Tolerance- Alignmen (http://www.dimcax.com/hust/showthread.php?t=18705)

yang686526 2009-05-07 04:37 PM

【转帖】system Variables For Dimension Style Tolerance- Alignmen
 
system variables for dimension style tolerance- alignment
system variables for dimension style tolerance- alignment
hi!
i can't find appropriate acad system variables for acad's dimension style dialog ->modify..., the last folder 'tolerances', radio buttons inside 'tolerance alignment', namely, 'align decimal separators' and 'align operational symbols'.
could you, please, help me?
thanks in advance.
hello
this variable is stored in xdata
1001
acad_dstyle_dimtaln
1070
392
1070
1 1 - 'align decimal separators' 0 - 'align operational symbols'
best regards,
sergey z.
thank you, sergey!
but how can i access this variable, using dd functions (such as style_->dimtp() for upper value of tolerance)? it seems, there is no function that looks like dimtaln()...
quote:
originally posted by aziyatdinov@infrasoft.ru
thank you, sergey!
but how can i access this variable, using dd functions (such as style_->dimtp() for upper value of tolerance)? it seems, there is no function that looks like dimtaln()...
hello
you are right. there is no such function.
try to use next code
code:
oddbdimensionptr pdim;
odresbufptr prb;
prb = pdim->xdata("acad_dstyle_dimtaln");
if ( !prb.isnull() )
{
prb = prb->next();
while ( !prb.isnull() )
{
if ( prb->getint32() == 392 )
{
prb = prb->next();
taln = prb->getint16();
}
prb = prb->next();
}
}
best regards,
sergey z.


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