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

yang686526 2009-05-07 03:50 PM

【转帖】setuplayoutviews
 
setuplayoutviews
setuplayoutviews
in the single doc project, if i change the line below as follows, i get an access violation in the dd1.13, i was wondering if this is the correct thing to do or not.
m_pdevice = oddbgsmanager::setupactivelayoutviews(m_pdevice, this);
to.
m_pdevice = ddbgsmanager::setuplayoutviews(theapp.m_pdb->getmodelspaceid(), m_pdevice, this);
the access violations is at this actuall call.
cheers
jason

1. first parameter of setuplayoutviews is oddbobjectid of layout. oddbdatabase::getmodelspaceid() returns the oddbobjectid of model space block.
2. access violation is possible if theapp.m_pdb is null, for example.
sincerely yours,
george udov


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