查看单个帖子
旧 2009-05-05, 12:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how can i save ucsvp to the drawing

how can i save "ucsvp" to the drawing?
how can i save "ucsvp" to the drawing?
i use setsysvar,but it don't work.
hi,
i have tested ucsvp with mfcapp. i change ucsvp from 1 to 0 and save file, load it and ucsvp is 0.
hi
how did you do it?could you show me some codes?thx
mfcapp has edit\console, type ucsvp and change value, save, reopen and check new value (tested with 2.4.1).
code :
oddbdatabase* pdb = getdocument()->m_pdb;
odresbufptr prb = odresbuf::newrb(odresbuf::krtint16, (odint16)0);
pdb->setsysvar("ucsvp", prb);
ucsvp isn't stored in database system variables, but in active viewport.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)