几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how can i save ucsvp to the drawing (http://www.dimcax.com/hust/showthread.php?t=16556)

yang686526 2009-05-05 12:20 PM

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


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