几何尺寸与公差论坛------致力于产品几何量公差标准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 do i set the blip mode (http://www.dimcax.com/hust/showthread.php?t=16583)

yang686526 2009-05-05 12:29 PM

【转帖】how do i set the blip mode
 
how do i set the blip mode?
how do i set the blip mode?
i have this code fragment:
code:
void cvertcheckdlg::initialisedrawing(oddbdatabase *pdb)
{
assert( pdb != null );
if( pdb != null )
{
// set drawing date and time
setdrawingdatetime( pdb, coledatetime::getcurrenttime() );
// switch off blipmode
pdb->setblipmode( 0 );
// add any other drawing setup here.....
}
}
but it won't compile saying:
c:\my programs\vertcheck\vertcheckdlg.cpp(1417) : error c2039: 'setblipmode' : is not a member of 'oddbdatabase'
c:\dwgdirect\include\dbdatabase.h(122) : see declaration of 'oddbdatabase'
please clarify how i can set this variable...
andrew
blipmode is not saved in drawing. it's saved by autocad in registry. so setblipmode() is not oddbdatabase but oddbhostappservices method.
in sysvardefs.h container such variables are defined by regvar_def macro (not by var_def as database ones)
sergey slezkin
i see. i did notice it in the sysvardefs.h file and couldn't work it out. i have just left it as it is then, since it should evidently be left as to whatever autocad has set it to.
thanks for clarification.
andrew


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