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