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

yang686526 2009-05-06 10:28 PM

【转帖】printing oddbole2frame and oddbrasterimage
 
printing oddbole2frame and oddbrasterimage
printing oddbole2frame and oddbrasterimage
hi,
we are using dd 2.06.01, in this version we can't print imageraster and ole2frame.
i test it with odamfcappdll, with files in attachment. you have to do print preview twice to see the ole2frame entity. the rasterimage entity never appears !
is it fixed in dd 2.07.00 ?
regards,
benjamin.
attached images

hi,
imageraster and ole2frame printing fixes will be available in 2.7.1
the problem i can reproduce is a bit different from the one you described:
open the sample file in odamfcapp. turn gs model off.
ole2frame entity is missing if the drawing is vectorized by wingdi device and
in print preview.
everything is ok if gs model is on.
i entered cr 5495 for it:
sergey slezkin
thank you sergey,
you test it with dd 2.07.00 ?
and print\preview via bitmap is false or true ? because, in our case, it must be false.
best regards.
the deffect i described took place in 2.6.3 and 2.7.0
for problem you described print/preview via bitmap = false is important. i reproduced it in 2.7.0
both fixes will be in next release.
sergey slezkin
when do you plan the next release 2.07.01 ?
we find a solution for ole2frame entity, before printing or print/preview, create, release and create the device an other time :
code:
odgsmoduleptr pgsmodule = ::odrxdynamiclinker()->loadmodule(gdi_device);
if(!pgsmodule.isnull())
{
odgsdeviceptr pprinterdevice = pgsmodule->createdevice();
if (pprinterdevice.get())
{
m_pprinterdevice = oddbgsmanager::setupactivelayoutviews(pprinterdevice, this);
}
pprinterdevice.release();
m_pprinterdevice.release();

pprinterdevice = pgsmodule->createdevice();

if (pprinterdevice.get())
{
m_pprinterdevice = oddbgsmanager::setupactivelayoutviews(pprinterdevice, this);
}can you give us a solution for rasterimage because we can't find anything to resolve the bug with our version.
best regards.

hi,
bug fix for raster image was described in:
thank you,
we are only sustaining membership and we don't have the code, so i can't resolve that bug
when do you plan to release 2.07.01 ?

dwgdirect 2.7 beta 2 - december 15-20
dwgdirect 2.7 production - january 12-15
- - -
if you can't disable plotstyles generator from wingdi, theoretically you can write additional conveyor node, which redirects all proc's to plotstyles genrator and only rasterimageproc over it to the next conveyor node.
thank you for your advices, it was not easy but our developpers (lot of thanks for them) found a solution to print rasterimage with dd 2.06.01.
we didn't find that bug, it was reported by our customers and they were not realy nice...
it was a regression between dd 2.03.00 and dd 2.06.01.
now i hope that upgrading to dd 2.07.01 will be less hard than dd 2.06.01.
regards.


所有的时间均为北京时间。 现在的时间是 09:47 PM.