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

yang686526 2009-05-04 06:32 PM

【转帖】crash in setuplayoutviews
 
crash in setuplayoutviews
crash in setuplayoutviews
hi,
we've come across a couple of drawings that are crashing in setuplayoutviews when attempting to vectorize a layout. i have been able to work around this crash by first calling database->setcurrentlayout and then calling setupactivelayoutviews. i would like to know if there's any side effect of doing this. (since we don't write the dwg file, modifying it isn't an issue.)
in both cases i have seen, the problem occurs in 2000 format dwg files and goes away if you save the file in 2004 format.
thanks for any information,
chad
pdb->setactivelayout() initializes the layout (if it was not initialized yet and creates overall viewport for ps layout)
it would be interesting to see an example of drawing causing the problem.
sergey slezkin
quote:
originally posted by sergey slezkin
pdb->setactivelayout() initializes the layout (if it was not initialized yet and creates overall viewport for ps layout)
it would be interesting to see an example of drawing causing the problem.
thanks for the reply, sergey. related to this, do you know if there is a way to detect uninitialized layouts?
thanks for any information. i'll see if i can find a drawing that i can share with you.
chad


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